1nagios_checkdisk_plugSiEnL_isneulxinPuoxl(i8c)y nagios_chencakgdiiossk__cphleucgkidnisk_plugin_selinux(8)
2
3
4
6 nagios_checkdisk_plugin_selinux - Security Enhanced Linux Policy for
7 the nagios_checkdisk_plugin processes
8
10 Security-Enhanced Linux secures the nagios_checkdisk_plugin processes
11 via flexible mandatory access control.
12
13 The nagios_checkdisk_plugin processes execute with the nagios_check‐
14 disk_plugin_t SELinux type. You can check if you have these processes
15 running by executing the ps command with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep nagios_checkdisk_plugin_t
20
21
22
24 The nagios_checkdisk_plugin_t SELinux type can be entered via the na‐
25 gios_checkdisk_plugin_exec_t file type.
26
27 The default entrypoint paths for the nagios_checkdisk_plugin_t domain
28 are the following:
29
30 /usr/lib/nagios/plugins/check_disk, /usr/lib/nagios/plug‐
31 ins/check_disk_smb, /usr/lib/nagios/plugins/check_ide_smart,
32 /usr/lib/nagios/plugins/check_linux_raid
33
35 SELinux defines process types (domains) for each process running on the
36 system
37
38 You can see the context of a process using the -Z option to ps
39
40 Policy governs the access confined processes have to files. SELinux
41 nagios_checkdisk_plugin policy is very flexible allowing users to setup
42 their nagios_checkdisk_plugin processes in as secure a method as possi‐
43 ble.
44
45 The following process types are defined for nagios_checkdisk_plugin:
46
47 nagios_checkdisk_plugin_t
48
49 Note: semanage permissive -a nagios_checkdisk_plugin_t can be used to
50 make the process type nagios_checkdisk_plugin_t permissive. SELinux
51 does not deny access to permissive process types, but the AVC (SELinux
52 denials) messages are still generated.
53
54
56 SELinux policy is customizable based on least access required. na‐
57 gios_checkdisk_plugin policy is extremely flexible and has several
58 booleans that allow you to manipulate the policy and run nagios_check‐
59 disk_plugin with the tightest access possible.
60
61
62
63 If you want to allow all domains to execute in fips_mode, you must turn
64 on the fips_mode boolean. Enabled by default.
65
66 setsebool -P fips_mode 1
67
68
69
71 SELinux requires files to have an extended attribute to define the file
72 type.
73
74 You can see the context of a file using the -Z option to ls
75
76 Policy governs the access confined processes have to these files.
77 SELinux nagios_checkdisk_plugin policy is very flexible allowing users
78 to setup their nagios_checkdisk_plugin processes in as secure a method
79 as possible.
80
81 STANDARD FILE CONTEXT
82
83 SELinux defines the file context types for the nagios_checkdisk_plugin,
84 if you wanted to store files with these types in a different paths, you
85 need to execute the semanage command to specify alternate labeling and
86 then use restorecon to put the labels on disk.
87
88 semanage fcontext -a -t nagios_checkdisk_plugin_exec_t '/srv/na‐
89 gios_checkdisk_plugin/content(/.*)?'
90 restorecon -R -v /srv/mynagios_checkdisk_plugin_content
91
92 Note: SELinux often uses regular expressions to specify labels that
93 match multiple files.
94
95 The following file types are defined for nagios_checkdisk_plugin:
96
97
98
99 nagios_checkdisk_plugin_exec_t
100
101 - Set files with the nagios_checkdisk_plugin_exec_t type, if you want
102 to transition an executable to the nagios_checkdisk_plugin_t domain.
103
104
105 Paths:
106 /usr/lib/nagios/plugins/check_disk, /usr/lib/nagios/plug‐
107 ins/check_disk_smb, /usr/lib/nagios/plugins/check_ide_smart,
108 /usr/lib/nagios/plugins/check_linux_raid
109
110
111 Note: File context can be temporarily modified with the chcon command.
112 If you want to permanently change the file context you need to use the
113 semanage fcontext command. This will modify the SELinux labeling data‐
114 base. You will need to use restorecon to apply the labels.
115
116
118 semanage fcontext can also be used to manipulate default file context
119 mappings.
120
121 semanage permissive can also be used to manipulate whether or not a
122 process type is permissive.
123
124 semanage module can also be used to enable/disable/install/remove pol‐
125 icy modules.
126
127 semanage boolean can also be used to manipulate the booleans
128
129
130 system-config-selinux is a GUI tool available to customize SELinux pol‐
131 icy settings.
132
133
135 This manual page was auto-generated using sepolicy manpage .
136
137
139 selinux(8), nagios_checkdisk_plugin(8), semanage(8), restorecon(8),
140 chcon(1), sepolicy(8), setsebool(8)
141
142
143
144nagios_checkdisk_plugin 23-10-20 nagios_checkdisk_plugin_selinux(8)