1devicekit_disk_selinux(8)SELinux Policy devicekit_diskdevicekit_disk_selinux(8)
2
3
4

NAME

6       devicekit_disk_selinux  -  Security  Enhanced  Linux Policy for the de‐
7       vicekit_disk processes
8

DESCRIPTION

10       Security-Enhanced Linux secures the devicekit_disk processes via flexi‐
11       ble mandatory access control.
12
13       The  devicekit_disk processes execute with the devicekit_disk_t SELinux
14       type. You can check if you have these processes  running  by  executing
15       the ps command with the -Z qualifier.
16
17       For example:
18
19       ps -eZ | grep devicekit_disk_t
20
21
22

ENTRYPOINTS

24       The   devicekit_disk_t   SELinux  type  can  be  entered  via  the  de‐
25       vicekit_disk_exec_t file type.
26
27       The default entrypoint paths for the devicekit_disk_t  domain  are  the
28       following:
29
30       /lib/udisks2/udisksd,   /lib/udev/udisks-part-id,  /usr/lib/udisks2/ud‐
31       isksd,    /usr/libexec/udisks-daemon,     /usr/lib/udev/udisks-part-id,
32       /usr/libexec/udisks2/udisksd,            /usr/lib/udisks/udisks-daemon,
33       /usr/libexec/devkit-disks-daemon
34

PROCESS TYPES

36       SELinux defines process types (domains) for each process running on the
37       system
38
39       You can see the context of a process using the -Z option to ps
40
41       Policy  governs  the  access confined processes have to files.  SELinux
42       devicekit_disk policy is very flexible allowing users  to  setup  their
43       devicekit_disk processes in as secure a method as possible.
44
45       The following process types are defined for devicekit_disk:
46
47       devicekit_disk_t
48
49       Note:  semanage  permissive -a devicekit_disk_t can be used to make the
50       process type devicekit_disk_t permissive. SELinux does not deny  access
51       to permissive process types, but the AVC (SELinux denials) messages are
52       still generated.
53
54

BOOLEANS

56       SELinux policy is customizable based on  least  access  required.   de‐
57       vicekit_disk policy is extremely flexible and has several booleans that
58       allow you to manipulate the policy  and  run  devicekit_disk  with  the
59       tightest access possible.
60
61
62
63       If  you  want  to  dontaudit all daemons scheduling requests (setsched,
64       sys_nice), you must turn on the  daemons_dontaudit_scheduling  boolean.
65       Enabled by default.
66
67       setsebool -P daemons_dontaudit_scheduling 1
68
69
70
71       If you want to deny user domains applications to map a memory region as
72       both executable and writable, this  is  dangerous  and  the  executable
73       should be reported in bugzilla, you must turn on the deny_execmem bool‐
74       ean. Disabled by default.
75
76       setsebool -P deny_execmem 1
77
78
79
80       If you want to control the ability to mmap a low area  of  the  address
81       space,  as  configured  by /proc/sys/vm/mmap_min_addr, you must turn on
82       the mmap_low_allowed boolean. Disabled by default.
83
84       setsebool -P mmap_low_allowed 1
85
86
87
88       If you want to allow system to run with  NIS,  you  must  turn  on  the
89       nis_enabled boolean. Disabled by default.
90
91       setsebool -P nis_enabled 1
92
93
94
95       If  you want to disable kernel module loading, you must turn on the se‐
96       cure_mode_insmod boolean. Disabled by default.
97
98       setsebool -P secure_mode_insmod 1
99
100
101
102       If you want to allow unconfined executables to make their  heap  memory
103       executable.   Doing  this  is  a  really bad idea. Probably indicates a
104       badly coded executable, but could indicate an attack.  This  executable
105       should  be  reported  in bugzilla, you must turn on the selinuxuser_ex‐
106       echeap boolean. Disabled by default.
107
108       setsebool -P selinuxuser_execheap 1
109
110
111
112       If you want to allow unconfined executables to make  their  stack  exe‐
113       cutable.   This  should  never, ever be necessary. Probably indicates a
114       badly coded executable, but could indicate an attack.  This  executable
115       should  be reported in bugzilla, you must turn on the selinuxuser_exec‐
116       stack boolean. Enabled by default.
117
118       setsebool -P selinuxuser_execstack 1
119
120
121

MANAGED FILES

123       The SELinux process type devicekit_disk_t can manage files labeled with
124       the  following  file types.  The paths listed are the default paths for
125       these file types.  Note the processes UID still need to have  DAC  per‐
126       missions.
127
128       file_type
129
130            all files on the system
131
132

FILE CONTEXTS

134       SELinux requires files to have an extended attribute to define the file
135       type.
136
137       You can see the context of a file using the -Z option to ls
138
139       Policy governs the access  confined  processes  have  to  these  files.
140       SELinux  devicekit_disk policy is very flexible allowing users to setup
141       their devicekit_disk processes in as secure a method as possible.
142
143       STANDARD FILE CONTEXT
144
145       SELinux defines the file context types for the devicekit_disk,  if  you
146       wanted  to  store files with these types in a different paths, you need
147       to execute the semanage command to specify alternate labeling and  then
148       use restorecon to put the labels on disk.
149
150       semanage fcontext -a -t devicekit_disk_exec_t '/srv/devicekit_disk/con‐
151       tent(/.*)?'
152       restorecon -R -v /srv/mydevicekit_disk_content
153
154       Note: SELinux often uses regular expressions  to  specify  labels  that
155       match multiple files.
156
157       The following file types are defined for devicekit_disk:
158
159
160
161       devicekit_disk_exec_t
162
163       - Set files with the devicekit_disk_exec_t type, if you want to transi‐
164       tion an executable to the devicekit_disk_t domain.
165
166
167       Paths:
168            /lib/udisks2/udisksd,    /lib/udev/udisks-part-id,    /usr/lib/ud‐
169            isks2/udisksd,  /usr/libexec/udisks-daemon,  /usr/lib/udev/udisks-
170            part-id, /usr/libexec/udisks2/udisksd, /usr/lib/udisks/udisks-dae‐
171            mon, /usr/libexec/devkit-disks-daemon
172
173
174       Note:  File context can be temporarily modified with the chcon command.
175       If you want to permanently change the file context you need to use  the
176       semanage fcontext command.  This will modify the SELinux labeling data‐
177       base.  You will need to use restorecon to apply the labels.
178
179

COMMANDS

181       semanage fcontext can also be used to manipulate default  file  context
182       mappings.
183
184       semanage  permissive  can  also  be used to manipulate whether or not a
185       process type is permissive.
186
187       semanage module can also be used to enable/disable/install/remove  pol‐
188       icy modules.
189
190       semanage boolean can also be used to manipulate the booleans
191
192
193       system-config-selinux is a GUI tool available to customize SELinux pol‐
194       icy settings.
195
196

AUTHOR

198       This manual page was auto-generated using sepolicy manpage .
199
200

SEE ALSO

202       selinux(8), devicekit_disk(8),  semanage(8),  restorecon(8),  chcon(1),
203       sepolicy(8), setsebool(8)
204
205
206
207devicekit_disk                     23-10-20          devicekit_disk_selinux(8)
Impressum