summaryrefstree
path: root/kernel/security/proca/proca_task_descr.h
blob: 9938a364b12bd0066506df568dc203a0ac0b4920 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * 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 */