1ncftool_selinux(8) SELinux Policy ncftool ncftool_selinux(8)
2
3
4
6 ncftool_selinux - Security Enhanced Linux Policy for the ncftool pro‐
7 cesses
8
10 Security-Enhanced Linux secures the ncftool processes via flexible
11 mandatory access control.
12
13 The ncftool processes execute with the ncftool_t SELinux type. You can
14 check if you have these processes running by executing the ps command
15 with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep ncftool_t
20
21
22
24 The ncftool_t SELinux type can be entered via the ncftool_exec_t file
25 type.
26
27 The default entrypoint paths for the ncftool_t domain are the follow‐
28 ing:
29
30 /usr/bin/ncftool
31
33 SELinux defines process types (domains) for each process running on the
34 system
35
36 You can see the context of a process using the -Z option to ps
37
38 Policy governs the access confined processes have to files. SELinux
39 ncftool policy is very flexible allowing users to setup their ncftool
40 processes in as secure a method as possible.
41
42 The following process types are defined for ncftool:
43
44 ncftool_t
45
46 Note: semanage permissive -a ncftool_t can be used to make the process
47 type ncftool_t permissive. SELinux does not deny access to permissive
48 process types, but the AVC (SELinux denials) messages are still gener‐
49 ated.
50
51
53 The SELinux process type ncftool_t can manage files labeled with the
54 following file types. The paths listed are the default paths for these
55 file types. Note the processes UID still need to have DAC permissions.
56
57 net_conf_t
58
59 /etc/hosts[^/]*
60 /etc/yp.conf.*
61 /etc/denyhosts.*
62 /etc/hosts.deny.*
63 /etc/resolv.conf.*
64 /etc/.resolv.conf.*
65 /etc/resolv-secure.conf.*
66 /var/run/cloud-init(/.*)?
67 /var/run/systemd/network(/.*)?
68 /etc/sysconfig/networking(/.*)?
69 /etc/sysconfig/network-scripts(/.*)?
70 /etc/sysconfig/network-scripts/.*resolv.conf
71 /var/run/NetworkManager/resolv.conf.*
72 /var/run/NetworkManager/no-stub-resolv.conf.*
73 /etc/ethers
74 /etc/ntp.conf
75 /var/run/systemd/resolve/resolv.conf
76 /var/run/systemd/resolve/stub-resolv.conf
77
78 systemd_passwd_var_run_t
79
80 /var/run/systemd/ask-password(/.*)?
81 /var/run/systemd/ask-password-block(/.*)?
82
83
85 SELinux requires files to have an extended attribute to define the file
86 type.
87
88 You can see the context of a file using the -Z option to ls
89
90 Policy governs the access confined processes have to these files.
91 SELinux ncftool policy is very flexible allowing users to setup their
92 ncftool processes in as secure a method as possible.
93
94 STANDARD FILE CONTEXT
95
96 SELinux defines the file context types for the ncftool, if you wanted
97 to store files with these types in a different paths, you need to exe‐
98 cute the semanage command to specify alternate labeling and then use
99 restorecon to put the labels on disk.
100
101 semanage fcontext -a -t ncftool_exec_t '/srv/ncftool/content(/.*)?'
102 restorecon -R -v /srv/myncftool_content
103
104 Note: SELinux often uses regular expressions to specify labels that
105 match multiple files.
106
107 The following file types are defined for ncftool:
108
109
110
111 ncftool_exec_t
112
113 - Set files with the ncftool_exec_t type, if you want to transition an
114 executable to the ncftool_t domain.
115
116
117
118 Note: File context can be temporarily modified with the chcon command.
119 If you want to permanently change the file context you need to use the
120 semanage fcontext command. This will modify the SELinux labeling data‐
121 base. You will need to use restorecon to apply the labels.
122
123
125 semanage fcontext can also be used to manipulate default file context
126 mappings.
127
128 semanage permissive can also be used to manipulate whether or not a
129 process type is permissive.
130
131 semanage module can also be used to enable/disable/install/remove pol‐
132 icy modules.
133
134
135 system-config-selinux is a GUI tool available to customize SELinux pol‐
136 icy settings.
137
138
140 This manual page was auto-generated using sepolicy manpage .
141
142
144 selinux(8), ncftool(8), semanage(8), restorecon(8), chcon(1), sepol‐
145 icy(8)
146
147
148
149ncftool 23-10-20 ncftool_selinux(8)