1depmod_selinux(8) SELinux Policy depmod depmod_selinux(8)
2
3
4
6 depmod_selinux - Security Enhanced Linux Policy for the depmod pro‐
7 cesses
8
10 Security-Enhanced Linux secures the depmod processes via flexible
11 mandatory access control.
12
13 The depmod processes execute with the depmod_t SELinux type. You can
14 check if you have these processes running by executing the ps command
15 with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep depmod_t
20
21
22
24 The depmod_t SELinux type can be entered via the depmod_exec_t file
25 type.
26
27 The default entrypoint paths for the depmod_t domain are the following:
28
29 /sbin/depmod.*, /usr/sbin/depmod.*
30
32 SELinux defines process types (domains) for each process running on the
33 system
34
35 You can see the context of a process using the -Z option to ps
36
37 Policy governs the access confined processes have to files. SELinux
38 depmod policy is very flexible allowing users to setup their depmod
39 processes in as secure a method as possible.
40
41 The following process types are defined for depmod:
42
43 depmod_t
44
45 Note: semanage permissive -a depmod_t can be used to make the process
46 type depmod_t permissive. SELinux does not deny access to permissive
47 process types, but the AVC (SELinux denials) messages are still gener‐
48 ated.
49
50
52 SELinux policy is customizable based on least access required. depmod
53 policy is extremely flexible and has several booleans that allow you to
54 manipulate the policy and run depmod with the tightest access possible.
55
56
57
58 If you want to deny user domains applications to map a memory region as
59 both executable and writable, this is dangerous and the executable
60 should be reported in bugzilla, you must turn on the deny_execmem bool‐
61 ean. Enabled by default.
62
63 setsebool -P deny_execmem 1
64
65
66
67 If you want to allow all domains to execute in fips_mode, you must turn
68 on the fips_mode boolean. Enabled by default.
69
70 setsebool -P fips_mode 1
71
72
73
74 If you want to control the ability to mmap a low area of the address
75 space, as configured by /proc/sys/vm/mmap_min_addr, you must turn on
76 the mmap_low_allowed boolean. Disabled by default.
77
78 setsebool -P mmap_low_allowed 1
79
80
81
82 If you want to disable kernel module loading, you must turn on the
83 secure_mode_insmod boolean. Enabled by default.
84
85 setsebool -P secure_mode_insmod 1
86
87
88
89 If you want to allow unconfined executables to make their heap memory
90 executable. Doing this is a really bad idea. Probably indicates a
91 badly coded executable, but could indicate an attack. This executable
92 should be reported in bugzilla, you must turn on the selin‐
93 uxuser_execheap boolean. Disabled by default.
94
95 setsebool -P selinuxuser_execheap 1
96
97
98
99 If you want to allow unconfined executables to make their stack exe‐
100 cutable. This should never, ever be necessary. Probably indicates a
101 badly coded executable, but could indicate an attack. This executable
102 should be reported in bugzilla, you must turn on the selinuxuser_exec‐
103 stack boolean. Enabled by default.
104
105 setsebool -P selinuxuser_execstack 1
106
107
108
110 The SELinux process type depmod_t can manage files labeled with the
111 following file types. The paths listed are the default paths for these
112 file types. Note the processes UID still need to have DAC permissions.
113
114 file_type
115
116 all files on the system
117
118
120 SELinux requires files to have an extended attribute to define the file
121 type.
122
123 You can see the context of a file using the -Z option to ls
124
125 Policy governs the access confined processes have to these files.
126 SELinux depmod policy is very flexible allowing users to setup their
127 depmod processes in as secure a method as possible.
128
129 The following file types are defined for depmod:
130
131
132
133 depmod_exec_t
134
135 - Set files with the depmod_exec_t type, if you want to transition an
136 executable to the depmod_t domain.
137
138
139 Paths:
140 /sbin/depmod.*, /usr/sbin/depmod.*
141
142
143 Note: File context can be temporarily modified with the chcon command.
144 If you want to permanently change the file context you need to use the
145 semanage fcontext command. This will modify the SELinux labeling data‐
146 base. You will need to use restorecon to apply the labels.
147
148
150 semanage fcontext can also be used to manipulate default file context
151 mappings.
152
153 semanage permissive can also be used to manipulate whether or not a
154 process type is permissive.
155
156 semanage module can also be used to enable/disable/install/remove pol‐
157 icy modules.
158
159 semanage boolean can also be used to manipulate the booleans
160
161
162 system-config-selinux is a GUI tool available to customize SELinux pol‐
163 icy settings.
164
165
167 This manual page was auto-generated using sepolicy manpage .
168
169
171 selinux(8), depmod(8), semanage(8), restorecon(8), chcon(1), sepol‐
172 icy(8), setsebool(8)
173
174
175
176depmod 19-05-30 depmod_selinux(8)