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
7 chroot_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
31 chroot_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.
45 chroot_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
66 If you want to support SAMBA home directories, you must turn on the
67 use_samba_home_dirs boolean. Disabled by default.
68
69 setsebool -P use_samba_home_dirs 1
70
71
72
74 The SELinux process type chroot_user_t can manage files labeled with
75 the following file types. The paths listed are the default paths for
76 these file types. Note the processes UID still need to have DAC per‐
77 missions.
78
79 cifs_t
80
81
82 ecryptfs_t
83
84 /home/[^/]+/.Private(/.*)?
85 /home/[^/]+/.ecryptfs(/.*)?
86
87 fusefs_t
88
89 /var/run/user/[^/]*/gvfs
90
91 nfs_t
92
93
94 user_home_t
95
96 /home/[^/]+/.+
97
98
100 semanage fcontext can also be used to manipulate default file context
101 mappings.
102
103 semanage permissive can also be used to manipulate whether or not a
104 process type is permissive.
105
106 semanage module can also be used to enable/disable/install/remove pol‐
107 icy modules.
108
109 semanage boolean can also be used to manipulate the booleans
110
111
112 system-config-selinux is a GUI tool available to customize SELinux pol‐
113 icy settings.
114
115
117 This manual page was auto-generated using sepolicy manpage .
118
119
121 selinux(8), chroot_user(8), semanage(8), restorecon(8), chcon(1),
122 sepolicy(8), setsebool(8)
123
124
125
126chroot_user 19-05-30 chroot_user_selinux(8)