1sshd_sandbox_selinux(8) SELinux Policy sshd_sandbox sshd_sandbox_selinux(8)
2
3
4
6 sshd_sandbox_selinux - Security Enhanced Linux Policy for the
7 sshd_sandbox processes
8
10 Security-Enhanced Linux secures the sshd_sandbox processes via flexible
11 mandatory access control.
12
13 The sshd_sandbox processes execute with the sshd_sandbox_t SELinux
14 type. You can check if you have these processes running by executing
15 the ps command with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep sshd_sandbox_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 sshd_sandbox policy is very flexible allowing users to setup their
31 sshd_sandbox processes in as secure a method as possible.
32
33 The following process types are defined for sshd_sandbox:
34
35 sshd_sandbox_t
36
37 Note: semanage permissive -a sshd_sandbox_t can be used to make the
38 process type sshd_sandbox_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 sshd_sandbox policy is extremely flexible and has several booleans that
46 allow you to manipulate the policy and run sshd_sandbox with the tight‐
47 est access possible.
48
49
50
51 If you want to deny any process from ptracing or debugging any other
52 processes, you must turn on the deny_ptrace boolean. Enabled by
53 default.
54
55 setsebool -P deny_ptrace 1
56
57
58
59 If you want to allow any process to mmap any file on system with
60 attribute file_type, you must turn on the domain_can_mmap_files bool‐
61 ean. Enabled by default.
62
63 setsebool -P domain_can_mmap_files 1
64
65
66
67 If you want to allow all domains write to kmsg_device, while kernel is
68 executed with systemd.log_target=kmsg parameter, you must turn on the
69 domain_can_write_kmsg boolean. Disabled by default.
70
71 setsebool -P domain_can_write_kmsg 1
72
73
74
75 If you want to allow all domains to use other domains file descriptors,
76 you must turn on the domain_fd_use boolean. Enabled by default.
77
78 setsebool -P domain_fd_use 1
79
80
81
82 If you want to allow all domains to have the kernel load modules, you
83 must turn on the domain_kernel_load_modules boolean. Disabled by
84 default.
85
86 setsebool -P domain_kernel_load_modules 1
87
88
89
90 If you want to allow all domains to execute in fips_mode, you must turn
91 on the fips_mode boolean. Enabled by default.
92
93 setsebool -P fips_mode 1
94
95
96
97 If you want to enable reading of urandom for all domains, you must turn
98 on the global_ssp boolean. Disabled by default.
99
100 setsebool -P global_ssp 1
101
102
103
105 semanage fcontext can also be used to manipulate default file context
106 mappings.
107
108 semanage permissive can also be used to manipulate whether or not a
109 process type is permissive.
110
111 semanage module can also be used to enable/disable/install/remove pol‐
112 icy modules.
113
114 semanage boolean can also be used to manipulate the booleans
115
116
117 system-config-selinux is a GUI tool available to customize SELinux pol‐
118 icy settings.
119
120
122 This manual page was auto-generated using sepolicy manpage .
123
124
126 selinux(8), sshd_sandbox(8), semanage(8), restorecon(8), chcon(1),
127 sepolicy(8) , setsebool(8)
128
129
130
131sshd_sandbox 19-04-25 sshd_sandbox_selinux(8)