ncftool_selinux(8)
π
ncftool_selinux(8) β the SELinux glow-up for ncftool
okay so bestie, you've stumbled into ncftool_selinux(8), the SELinux Policy ncftool manual, and honestly? it's giving "protective older sibling energy" for the ncftool processes. let's get into it π«Ά
β¨ NAME β¨
ncftool_selinux β Security Enhanced Linux Policy for the ncftool processes. that's it, that's the whole vibe. π
πΈ DESCRIPTION πΈ
Security-Enhanced Linux secures the ncftool processes via flexible mandatory access control. yes, mandatory. it's not asking, it's telling. π
The ncftool processes execute with the ncftool_t SELinux type. wanna check if you've got these processes running? just execute the ps command with the -Z qualifier. easy.
for example:
ps -eZ | grep ncftool_t
literally go try it, i'll wait. π¦
πͺ ENTRYPOINTS πͺ
The ncftool_t SELinux type can be entered via the ncftool_exec_t file type. that's the door, that's the whole gateway.
the default entrypoint paths for the ncftool_t domain are the following:
/usr/bin/ncftool
one path. iconic. no cap. β¨
π PROCESS TYPES π
SELinux defines process types (domains) for each process running on the system. yes, every process gets its own little domain. main character energy for real.
you can see the context of a process using the -Z option to ps.
Policy governs the access confined processes have to files. SELinux ncftool policy is very flexible, allowing users to setup their ncftool processes in as secure a method as possible. flexible and secure? we love a multitasker. π
the following process types are defined for ncftool:
ncftool_t
Note:semanage permissive -a ncftool_tcan be used to make the process typencftool_tpermissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. so likeβ¦ it still talks about it, it just doesn't stop you. messy but useful π
ποΈ MANAGED FILES ποΈ
The SELinux process type ncftool_t can manage files labeled with the following file types. the paths listed are the default paths for these file types. heads up though β the processes UID still need to have DAC permissions. SELinux can't cover for a UID that doesn't have perms, sorry bestie π
net_conf_t
/etc/hosts[^/]*
/etc/yp.conf.*
/etc/denyhosts.*
/run/netconfig(/.*)?
/etc/hosts.deny.*
/run/cloud-init(/.*)?
/etc/resolv.conf.*
/etc/.resolv.conf.*
/etc/resolv-secure.conf.*
/run/systemd/network(/.*)?
/etc/sysconfig/network(/.*)?
/etc/sysconfig/network/.*resolv.conf
/etc/sysconfig/networking(/.*)?
/run/NetworkManager/resolv.conf.*
/run/NetworkManager/no-stub-resolv.conf.*
/etc/sysconfig/network/scripts/functions.netconfig
/etc/ethers
/etc/ntp.conf
/run/systemd/resolve/resolv.conf
/run/systemd/resolve/stub-resolv.conf
systemd_passwd_var_run_t
/run/systemd/ask-password(/.*)?
/run/systemd/ask-password-block(/.*)?
that's a lot of paths but we don't skip a single one around here π
π FILE CONTEXTS π
SELinux requires files to have an extended attribute to define the file type. it's not a suggestion, it's the whole system bb.
you can see the context of a file using the -Z option to ls.
Policy governs the access confined processes have to these files. SELinux ncftool policy is very flexible, allowing users to setup their ncftool processes in as secure a method as possible. she's consistent, we stan. π
β STANDARD FILE CONTEXT β
SELinux defines the file context types for the ncftool, and if you wanted to store files with these types in a different paths, you need to execute the semanage command to specify alternate labeling and then use restorecon to put the labels on disk. two steps, no shortcuts. π
semanage fcontext -a -t ncftool_exec_t '/srv/ncftool/content(/.*)?'
restorecon -R -v /srv/myncftool_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies rise π§
the following file types are defined for ncftool:
ncftool_exec_t
- Set files with the
ncftool_exec_ttype, if you want to transition an executable to thencftool_tdomain. that's the glow-up pipeline right there β¨
Note: File context can be temporarily modified with thechconcommand. if you want to permanently change the file context you need to use thesemanage fcontextcommand. This will modify the SELinux labeling database. You will need to userestoreconto apply the labels. temporary vs permanent β choose wisely bestie,chconis the "i'll fix it later" of the SELinux world π
π οΈ COMMANDS π οΈ
semanage fcontextcan also be used to manipulate default file context mappings.semanage permissivecan also be used to manipulate whether or not a process type is permissive.semanage modulecan also be used to enable/disable/install/remove policy modules.system-config-selinuxis a GUI tool available to customize SELinux policy settings. a whole GUI, for the people who like clicking π
βοΈ AUTHOR βοΈ
This manual page was auto-generated using sepolicy manpage . β yes, the robot wrote it, and honestly it ate π₯
π SEE ALSO π
selinux(8), ncftool(8), semanage(8), restorecon(8), chcon(1), sepolicy(8)
like i said, the whole friend group. go read them, iykyk π
and that's the page! brought to you by ncftool, dated 26-10-06, living in ncftool_selinux(8) β slay, periodt, go label some files πΈπ
π¦
π¦ where this page comes from
- opensuse-leap 16.0: selinux-policy-doc 20250627+git412.dbf877ab7-160000.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms