1chroot_user_selinux(8) SELinux Policy chroot_user chroot_user_selinux(8)
2
3
4
6 chroot_user_selinux - Security Enhanced Linux Policy for the ch‐
7 root_user processes
8
10 Security-Enhanced Linux secures the chroot_user processes via flexible
11 mandatory access control.
12
13 The chroot_user processes execute with the chroot_user_t SELinux type.
14 You can check if you have these processes running by executing the ps
15 command with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep chroot_user_t
20
21
22
24 SELinux defines process types (domains) for each process running on the
25 system
26
27 You can see the context of a process using the -Z option to ps
28
29 Policy governs the access confined processes have to files. SELinux
30 chroot_user policy is very flexible allowing users to setup their ch‐
31 root_user processes in as secure a method as possible.
32
33 The following process types are defined for chroot_user:
34
35 chroot_user_t
36
37 Note: semanage permissive -a chroot_user_t can be used to make the
38 process type chroot_user_t permissive. SELinux does not deny access to
39 permissive process types, but the AVC (SELinux denials) messages are
40 still generated.
41
42
44 SELinux policy is customizable based on least access required. ch‐
45 root_user policy is extremely flexible and has several booleans that
46 allow you to manipulate the policy and run chroot_user with the tight‐
47 est access possible.
48
49
50
51 If you want to allow all domains to execute in fips_mode, you must turn
52 on the fips_mode boolean. Enabled by default.
53
54 setsebool -P fips_mode 1
55
56
57
58 If you want to allow ssh with chroot env to read and write files in the
59 user home directories, you must turn on the ssh_chroot_rw_homedirs
60 boolean. Disabled by default.
61
62 setsebool -P ssh_chroot_rw_homedirs 1
63
64
65
67 The SELinux process type chroot_user_t can manage files labeled with
68 the following file types. The paths listed are the default paths for
69 these file types. Note the processes UID still need to have DAC per‐
70 missions.
71
72 cifs_t
73
74
75 ecryptfs_t
76
77 /home/[^/]+/.Private(/.*)?
78 /home/[^/]+/.ecryptfs(/.*)?
79
80 fusefs_t
81
82 /var/run/user/[^/]*/gvfs
83
84 nfs_t
85
86
87
89 semanage fcontext can also be used to manipulate default file context
90 mappings.
91
92 semanage permissive can also be used to manipulate whether or not a
93 process type is permissive.
94
95 semanage module can also be used to enable/disable/install/remove pol‐
96 icy modules.
97
98 semanage boolean can also be used to manipulate the booleans
99
100
101 system-config-selinux is a GUI tool available to customize SELinux pol‐
102 icy settings.
103
104
106 This manual page was auto-generated using sepolicy manpage .
107
108
110 selinux(8), chroot_user(8), semanage(8), restorecon(8), chcon(1), se‐
111 policy(8), setsebool(8)
112
113
114
115chroot_user 21-11-19 chroot_user_selinux(8)