blob: f68818a868cd370ea4fb1a11e20d2b883ff55714 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/*
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
*
* Sensitive Data Protection
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* 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.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef _UAPI_SDP_MM_H_
#define _UAPI_SDP_MM_H_
#include <linux/types.h>
#include <linux/ioctl.h>
#define MAX_SENSITIVE_PROC 100
/*
* struct sdp_mm_sensitive_proc_req - for setting the process as sensitive
* @proc_id - process id of the process to be set (as sensitive)
*/
struct sdp_mm_sensitive_proc_req {
unsigned int proc_id; /* in */
};
/*
* struct sdp_mm_sensitive_proc_list_resp - for querying sensitive process list
* @sensitive_proc_list_len - number of sensitive processes in the list
* @sensitive_proc_list - sensitive process list
*/
struct sdp_mm_sensitive_proc_list_resp {
unsigned int sensitive_proc_list_len;
unsigned int sensitive_proc_list[MAX_SENSITIVE_PROC];
};
#define SDP_MM_IOC_MAGIC 0x77
#define SDP_MM_IOCTL_PROC_SENSITIVE_QUERY_REQ \
_IOWR(SDP_MM_IOC_MAGIC, 1, struct sdp_mm_sensitive_proc_list_resp)
#define SDP_MM_IOCTL_SET_SENSITIVE_PROC_REQ \
_IOWR(SDP_MM_IOC_MAGIC, 2, struct sdp_mm_sensitive_proc_req)
#endif /* _UAPI_SDP_MM_H_ */
|