1quota_selinux(8)             SELinux Policy quota             quota_selinux(8)
2
3
4

NAME

6       quota_selinux - Security Enhanced Linux Policy for the quota processes
7

DESCRIPTION

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

ENTRYPOINTS

23       The quota_t SELinux type can be entered via the quota_exec_t file type.
24
25       The default entrypoint paths for the quota_t domain are the following:
26
27       /sbin/quota(check|on), /usr/sbin/convertquota
28

PROCESS TYPES

30       SELinux defines process types (domains) for each process running on the
31       system
32
33       You can see the context of a process using the -Z option to ps
34
35       Policy  governs  the  access confined processes have to files.  SELinux
36       quota policy is very flexible allowing users to setup their quota  pro‐
37       cesses in as secure a method as possible.
38
39       The following process types are defined for quota:
40
41       quota_t, quota_nld_t
42
43       Note:  semanage  permissive  -a quota_t can be used to make the process
44       type quota_t permissive. SELinux does not  deny  access  to  permissive
45       process  types, but the AVC (SELinux denials) messages are still gener‐
46       ated.
47
48

BOOLEANS

50       SELinux policy is customizable based on least access  required.   quota
51       policy is extremely flexible and has several booleans that allow you to
52       manipulate the policy and run quota with the tightest access possible.
53
54
55
56       If you want to allow all daemons the ability to  read/write  terminals,
57       you  must  turn  on  the  allow_daemons_use_tty  boolean.  Disabled  by
58       default.
59
60       setsebool -P allow_daemons_use_tty 1
61
62
63
64       If you want to allow all domains to use other domains file descriptors,
65       you must turn on the allow_domain_fd_use boolean. Enabled by default.
66
67       setsebool -P allow_domain_fd_use 1
68
69
70
71       If  you want to allow sysadm to debug or ptrace all processes, you must
72       turn on the allow_ptrace boolean. Disabled by default.
73
74       setsebool -P allow_ptrace 1
75
76
77
78       If you want to allow all domains to have the kernel load  modules,  you
79       must  turn  on  the  domain_kernel_load_modules  boolean.  Disabled  by
80       default.
81
82       setsebool -P domain_kernel_load_modules 1
83
84
85
86       If you want to allow all domains to execute in fips_mode, you must turn
87       on the fips_mode boolean. Enabled by default.
88
89       setsebool -P fips_mode 1
90
91
92
93       If you want to enable reading of urandom for all domains, you must turn
94       on the global_ssp boolean. Disabled by default.
95
96       setsebool -P global_ssp 1
97
98
99

MANAGED FILES

101       The SELinux process type quota_t can manage files labeled with the fol‐
102       lowing  file  types.   The paths listed are the default paths for these
103       file types.  Note the processes UID still need to have DAC permissions.
104
105       initrc_tmp_t
106
107
108       mnt_t
109
110            /mnt(/[^/]*)
111            /mnt(/[^/]*)?
112            /rhev(/[^/]*)?
113            /media(/[^/]*)
114            /media(/[^/]*)?
115            /etc/rhgb(/.*)?
116            /media/.hal-.*
117            /net
118            /afs
119            /rhev
120            /misc
121
122       noxattrfs
123
124            all files on file systems which do not support extended attributes
125
126       quota_db_t
127
128            /a?quota.(user|group)
129            /var/a?quota.(user|group)
130            /etc/a?quota.(user|group)
131            /boot/a?quota.(user|group)
132            /var/spool/(.*/)?a?quota.(user|group)
133            /var/lib/openshift/a?quota.(user|group)
134            /var/lib/stickshift/a?quota.(user|group)
135            /home/a?quota.(user|group)
136
137       tmp_t
138
139            /tmp
140            /usr/tmp
141            /var/tmp
142            /tmp-inst
143            /var/tmp-inst
144            /var/tmp/vi.recover
145
146

FILE CONTEXTS

148       SELinux requires files to have an extended attribute to define the file
149       type.
150
151       You can see the context of a file using the -Z option to ls
152
153       Policy  governs  the  access  confined  processes  have to these files.
154       SELinux quota policy is very flexible allowing  users  to  setup  their
155       quota processes in as secure a method as possible.
156
157       STANDARD FILE CONTEXT
158
159       SELinux  defines the file context types for the quota, if you wanted to
160       store files with these types in a diffent paths, you  need  to  execute
161       the  semanage  command  to  sepecify  alternate  labeling  and then use
162       restorecon to put the labels on disk.
163
164       semanage  fcontext   -a   -t   quota_nld_var_run_t   '/srv/myquota_con‐
165       tent(/.*)?'
166       restorecon -R -v /srv/myquota_content
167
168       Note:  SELinux  often  uses  regular expressions to specify labels that
169       match multiple files.
170
171       The following file types are defined for quota:
172
173
174
175       quota_db_t
176
177       - Set files with the quota_db_t type, if you want to treat the files as
178       quota database content.
179
180
181       Paths:
182            /a?quota.(user|group),                  /var/a?quota.(user|group),
183            /etc/a?quota.(user|group),             /boot/a?quota.(user|group),
184            /var/spool/(.*/)?a?quota.(user|group),              /var/lib/open‐
185            shift/a?quota.(user|group),                        /var/lib/stick‐
186            shift/a?quota.(user|group), /home/a?quota.(user|group)
187
188
189       quota_exec_t
190
191       -  Set  files  with the quota_exec_t type, if you want to transition an
192       executable to the quota_t domain.
193
194
195       Paths:
196            /sbin/quota(check|on), /usr/sbin/convertquota
197
198
199       quota_flag_t
200
201       - Set files with the quota_flag_t type, if you want to treat the  files
202       as quota flag data.
203
204
205
206       quota_nld_exec_t
207
208       -  Set  files with the quota_nld_exec_t type, if you want to transition
209       an executable to the quota_nld_t domain.
210
211
212
213       quota_nld_var_run_t
214
215       - Set files with the quota_nld_var_run_t type, if you want to store the
216       quota nld files under the /run or /var/run directory.
217
218
219
220       Note:  File context can be temporarily modified with the chcon command.
221       If you want to permanently change the file context you need to use  the
222       semanage fcontext command.  This will modify the SELinux labeling data‐
223       base.  You will need to use restorecon to apply the labels.
224
225

COMMANDS

227       semanage fcontext can also be used to manipulate default  file  context
228       mappings.
229
230       semanage  permissive  can  also  be used to manipulate whether or not a
231       process type is permissive.
232
233       semanage module can also be used to enable/disable/install/remove  pol‐
234       icy modules.
235
236       semanage boolean can also be used to manipulate the booleans
237
238
239       system-config-selinux is a GUI tool available to customize SELinux pol‐
240       icy settings.
241
242

AUTHOR

244       This manual page was auto-generated using sepolicy manpage .
245
246

SEE ALSO

248       selinux(8), quota(8), semanage(8),  restorecon(8),  chcon(1)  ,  setse‐
249       bool(8), quota_nld_selinux(8), quota_nld_selinux(8)
250
251
252
253quota                              15-06-03                   quota_selinux(8)
Impressum