You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
kernel_samsung_sm7125/security/proca/proca_task_descr.h

38 lines
1.1 KiB

/*
* PROCA task descriptor interface
*
* Copyright (C) 2018 Samsung Electronics, Inc.
* Hryhorii Tur, <hryhorii.tur@partner.samsung.com>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __LINUX_PROCA_TASK_DESCR_H
#define __LINUX_PROCA_TASK_DESCR_H
#include <linux/file.h>
#include <linux/types.h>
#include <linux/sched.h>
#include "proca_identity.h"
struct proca_task_descr {
struct task_struct *task;
struct proca_identity proca_identity;
struct hlist_node pid_map_node;
struct hlist_node app_name_map_node;
};
struct proca_task_descr *create_proca_task_descr(struct task_struct *task,
struct proca_identity *ident);
void destroy_proca_task_descr(struct proca_task_descr *proca_task_descr);
#endif /* __LINUX_PROCA_H */