1gpg_selinux(8)                SELinux Policy gpg                gpg_selinux(8)
2
3
4

NAME

6       gpg_selinux - Security Enhanced Linux Policy for the gpg processes
7

DESCRIPTION

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

ENTRYPOINTS

23       The gpg_t SELinux type can be entered via the gpg_exec_t file type.
24
25       The default entrypoint paths for the gpg_t domain are the following:
26
27       /usr/bin/gpg(2)?, /usr/lib/gnupg/.*, /usr/bin/gpgsm
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       gpg policy is very flexible allowing users to setup their gpg processes
37       in as secure a method as possible.
38
39       The following process types are defined for gpg:
40
41       gpg_t, gpg_agent_t, gpg_helper_t, gpg_pinentry_t, gpg_web_t
42
43       Note: semanage permissive -a gpg_t can be used to make the process type
44       gpg_t permissive. SELinux does not deny access  to  permissive  process
45       types, but the AVC (SELinux denials) messages are still generated.
46
47

BOOLEANS

49       SELinux  policy  is  customizable  based on least access required.  gpg
50       policy is extremely flexible and has several booleans that allow you to
51       manipulate the policy and run gpg with the tightest access possible.
52
53
54
55       If you want to allow all domains to execute in fips_mode, you must turn
56       on the fips_mode boolean. Enabled by default.
57
58       setsebool -P fips_mode 1
59
60
61

MANAGED FILES

63       The SELinux process type gpg_t can manage files labeled with  the  fol‐
64       lowing  file  types.   The paths listed are the default paths for these
65       file types.  Note the processes UID still need to have DAC permissions.
66
67       cifs_t
68
69
70       ecryptfs_t
71
72            /home/[^/]+/.Private(/.*)?
73            /home/[^/]+/.ecryptfs(/.*)?
74
75       etc_mail_t
76
77            /etc/mail(/.*)?
78
79       fusefs_t
80
81            /var/run/user/[^/]*/gvfs
82
83       gnome_home_type
84
85
86       gpg_secret_t
87
88            /root/.gnupg(/.+)?
89            /etc/mail/spamassassin/sa-update-keys(/.*)?
90            /home/[^/]+/.gnupg(/.+)?
91
92       mozilla_home_t
93
94            /home/[^/]+/.lyx(/.*)?
95            /home/[^/]+/.java(/.*)?
96            /home/[^/]+/.adobe(/.*)?
97            /home/[^/]+/.gnash(/.*)?
98            /home/[^/]+/.webex(/.*)?
99            /home/[^/]+/.IBMERS(/.*)?
100            /home/[^/]+/.galeon(/.*)?
101            /home/[^/]+/.spicec(/.*)?
102            /home/[^/]+/POkemon.*(/.*)?
103            /home/[^/]+/.icedtea(/.*)?
104            /home/[^/]+/.mozilla(/.*)?
105            /home/[^/]+/.phoenix(/.*)?
106            /home/[^/]+/.netscape(/.*)?
107            /home/[^/]+/.ICAClient(/.*)?
108            /home/[^/]+/.quakelive(/.*)?
109            /home/[^/]+/.macromedia(/.*)?
110            /home/[^/]+/.thunderbird(/.*)?
111            /home/[^/]+/.gcjwebplugin(/.*)?
112            /home/[^/]+/.grl-podcasts(/.*)?
113            /home/[^/]+/.cache/mozilla(/.*)?
114            /home/[^/]+/.icedteaplugin(/.*)?
115            /home/[^/]+/zimbrauserdata(/.*)?
116            /home/[^/]+/.juniper_networks(/.*)?
117            /home/[^/]+/.cache/icedtea-web(/.*)?
118            /home/[^/]+/abc
119            /home/[^/]+/mozilla.pdf
120            /home/[^/]+/.gnashpluginrc
121
122       nfs_t
123
124
125       user_home_t
126
127            /home/[^/]+/.+
128
129

FILE CONTEXTS

131       SELinux requires files to have an extended attribute to define the file
132       type.
133
134       You can see the context of a file using the -Z option to ls
135
136       Policy  governs  the  access  confined  processes  have to these files.
137       SELinux gpg policy is very flexible allowing users to setup  their  gpg
138       processes in as secure a method as possible.
139
140       STANDARD FILE CONTEXT
141
142       SELinux  defines  the  file context types for the gpg, if you wanted to
143       store files with these types in a diffent paths, you  need  to  execute
144       the  semanage  command  to  sepecify  alternate  labeling  and then use
145       restorecon to put the labels on disk.
146
147       semanage fcontext -a -t gpg_tmpfs_t '/srv/mygpg_content(/.*)?'
148       restorecon -R -v /srv/mygpg_content
149
150       Note: SELinux often uses regular expressions  to  specify  labels  that
151       match multiple files.
152
153       The following file types are defined for gpg:
154
155
156
157       gpg_agent_exec_t
158
159       -  Set  files with the gpg_agent_exec_t type, if you want to transition
160       an executable to the gpg_agent_t domain.
161
162
163
164       gpg_agent_tmp_t
165
166       - Set files with the gpg_agent_tmp_t type, if you  want  to  store  gpg
167       agent temporary files in the /tmp directories.
168
169
170
171       gpg_agent_tmpfs_t
172
173       -  Set  files with the gpg_agent_tmpfs_t type, if you want to store gpg
174       agent files on a tmpfs file system.
175
176
177
178       gpg_exec_t
179
180       - Set files with the gpg_exec_t type, if you want to transition an exe‐
181       cutable to the gpg_t domain.
182
183
184       Paths:
185            /usr/bin/gpg(2)?, /usr/lib/gnupg/.*, /usr/bin/gpgsm
186
187
188       gpg_helper_exec_t
189
190       -  Set files with the gpg_helper_exec_t type, if you want to transition
191       an executable to the gpg_helper_t domain.
192
193
194
195       gpg_pinentry_tmp_t
196
197       - Set files with the gpg_pinentry_tmp_t type, if you want to store  gpg
198       pinentry temporary files in the /tmp directories.
199
200
201
202       gpg_pinentry_tmpfs_t
203
204       -  Set  files  with the gpg_pinentry_tmpfs_t type, if you want to store
205       gpg pinentry files on a tmpfs file system.
206
207
208
209       gpg_secret_t
210
211       - Set files with the gpg_secret_t type, if you want to treat the  files
212       as gpg se secret data.
213
214
215       Paths:
216            /root/.gnupg(/.+)?,   /etc/mail/spamassassin/sa-update-keys(/.*)?,
217            /home/[^/]+/.gnupg(/.+)?
218
219
220       gpg_tmpfs_t
221
222       - Set files with the gpg_tmpfs_t type, if you want to store  gpg  files
223       on a tmpfs file system.
224
225
226
227       Note:  File context can be temporarily modified with the chcon command.
228       If you want to permanently change the file context you need to use  the
229       semanage fcontext command.  This will modify the SELinux labeling data‐
230       base.  You will need to use restorecon to apply the labels.
231
232

COMMANDS

234       semanage fcontext can also be used to manipulate default  file  context
235       mappings.
236
237       semanage  permissive  can  also  be used to manipulate whether or not a
238       process type is permissive.
239
240       semanage module can also be used to enable/disable/install/remove  pol‐
241       icy modules.
242
243       semanage boolean can also be used to manipulate the booleans
244
245
246       system-config-selinux is a GUI tool available to customize SELinux pol‐
247       icy settings.
248
249

AUTHOR

251       This manual page was auto-generated using sepolicy manpage .
252
253

SEE ALSO

255       selinux(8), gpg(8), semanage(8), restorecon(8), chcon(1),  sepolicy(8),
256       setsebool(8),        gpg_agent_selinux(8),        gpg_agent_selinux(8),
257       gpg_helper_selinux(8), gpg_helper_selinux(8),  gpg_pinentry_selinux(8),
258       gpg_pinentry_selinux(8), gpg_web_selinux(8), gpg_web_selinux(8)
259
260
261
262gpg                                20-05-05                     gpg_selinux(8)
Impressum