samba_dcerpcd_selinux(8)

πŸ“¦
version 20250627+git412.dbf877ab7 Β· 6 versions
, in opensuse-leap 16.0

πŸ’… samba_dcerpcd_selinux(8) β€” the SELinux policy page for samba_dcerpcd, bestie edition πŸŽ€

okay so this is the manual page for samba_dcerpcd_selinux, section 8 of the manual, and it's all about the SELinux policy that wraps around the samba_dcerpcd processes. yes it's long. no I'm not skipping anything. grab a strawberry drink πŸ“ and let's go.


✨ NAME ✨

samba_dcerpcd_selinux β€” the Security Enhanced Linux Policy for the samba_dcerpcd processes. literally that's it, that's the whole name section, she's simple, she's iconic πŸ’…


🌸 DESCRIPTION 🌸

Security-Enhanced Linux secures the samba_dcerpcd processes via flexible mandatory access control. mandatory, bestie β€” not the vibes-based kind, the enforced kind 😭

The samba_dcerpcd processes execute with the samba_dcerpcd_t SELinux type. wanna check if you've got these processes running? run ps with the -Z qualifier.

for example:

ps -eZ | grep samba_dcerpcd_t

that's the whole vibe check right there πŸ”


πŸ¦‹ ENTRYPOINTS πŸ¦‹

so the samba_dcerpcd_t SELinux type can be entered via the samba_dcerpcd_exec_t file type. that's the doorway, the portal, the main character entrance πŸšͺ✨

the default entrypoint paths for the samba_dcerpcd_t domain are the following:

/usr/lib/samba/rpcd_lsad, /usr/lib/samba/samba-dcerpcd

two paths. no cap. πŸ”₯


πŸ‘‘ PROCESS TYPES πŸ‘‘

SELinux defines process types (domains) for each process running on the system. yes, each one, she's thorough πŸ’œ

You can see the context of a process using the -Z option to ps.

Policy governs the access confined processes have to files. the SELinux samba_dcerpcd policy is very flexible, allowing users to setup their samba_dcerpcd processes in as secure a method as possible. flexible and secure? she ate. πŸ™ˆ

The following process types are defined for samba_dcerpcd:

  • samba_dcerpcd_t
Note: semanage permissive -a samba_dcerpcd_t can be used to make the process type samba_dcerpcd_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated.

so like, permissive means she stops saying no, but she does keep receipts. the AVC messages never stop. iykyk πŸ“


πŸ”₯ BOOLEANS πŸ”₯

SELinux policy is customizable based on least access required. the samba_dcerpcd policy is extremely flexible and has several booleans that allow you to manipulate the policy and run samba_dcerpcd with the tightest access possible. tightest access = the most locked-down slay πŸ”’βœ¨

If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default.

setsebool -P fips_mode 1

If you want to allow system to run with NIS, you must turn on the nis_enabled boolean. Disabled by default.

setsebool -P nis_enabled 1

If you want to allow samba to act as the domain controller, add users, groups and change passwords, you must turn on the samba_domain_controller boolean. Disabled by default.

setsebool -P samba_domain_controller 1

If you want to allow samba and winbind-rpcd to share users home directories, you must turn on the samba_enable_home_dirs boolean. Disabled by default.

setsebool -P samba_enable_home_dirs 1

If you want to allow samba to share any file/directory read only, you must turn on the samba_export_all_ro boolean. Disabled by default.

setsebool -P samba_export_all_ro 1

If you want to allow samba to share any file/directory read/write, you must turn on the samba_export_all_rw boolean. Disabled by default.

setsebool -P samba_export_all_rw 1

that's six booleans, all accounted for, all disabled by default except fips_mode which is living her best enabled life πŸ’–


🧚 MANAGED FILES 🧚

The SELinux process type samba_dcerpcd_t can manage files labeled with the following file types. The paths listed are the default paths for these file types.

Note: the processes UID still need to have DAC permissions. SELinux said "i'll handle the labels, you handle the perms" 🀝

faillog_t

/var/log/btmp.*
/run/faillock(/.*)?
/var/log/faillog.*
/var/log/tallylog.*

krb5_host_rcache_t

/var/tmp/krb5_0.rcache2
/var/cache/krb5rcache(/.*)?
/var/tmp/nfs_0
/var/tmp/DNS_25
/var/tmp/host_0
/var/tmp/imap_0
/var/tmp/HTTP_23
/var/tmp/HTTP_48
/var/tmp/ldap_55
/var/tmp/ldap_487
/var/tmp/ldapmap1_0

non_security_file_type

(no paths listed, she's just here for the vibe ✨)

noxattrfs

all files on file systems which do not support extended attributes

samba_bgqd_var_run_t

/run/samba-bgqd.pid

samba_dcerpcd_tmp_t

(no paths listed for this one either πŸŽ€)

samba_dcerpcd_var_run_t

/run/samba/samba-dcerpcd.pid

samba_log_t

/var/log/samba(/.*)?

samba_share_t

use this label for random content that will be shared using samba πŸ‘ˆ that's the actual description and honestly? iconic. "random content" is such a mood.

smbd_tmp_t

(no paths listed)

user_home_type

all user home files

winbind_var_run_t

/run/winbindd(/.*)?
/run/samba/winbindd(/.*)?
/var/lib/samba/winbindd_privileged(/.*)?
/var/cache/samba/winbindd_privileged(/.*)?

🌈 FILE CONTEXTS 🌈

SELinux requires files to have an extended attribute to define the file type. yes, files have labels now, we love a labeled file 🏷️

You can see the context of a file using the -Z option to ls.

Policy governs the access confined processes have to these files. the SELinux samba_dcerpcd policy is very flexible, allowing users to setup their samba_dcerpcd processes in as secure a method as possible.

🫢 STANDARD FILE CONTEXT

SELinux defines the file context types for the samba_dcerpcd. 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.

semanage fcontext -a -t samba_dcerpcd_exec_t
'/srv/samba_dcerpcd/content(/.*)?'
restorecon -R -v /srv/mysamba_dcerpcd_content
Note: SELinux often uses regular expressions to specify labels that match multiple files. regex girlies rise πŸ™Œ

The following file types are defined for samba_dcerpcd:

samba_dcerpcd_exec_t

  • Set files with the samba_dcerpcd_exec_t type, if you want to transition an executable to the samba_dcerpcd_t domain.

Paths:

/usr/lib/samba/rpcd_lsad, /usr/lib/samba/samba-dcerpcd

samba_dcerpcd_tmp_t

  • Set files with the samba_dcerpcd_tmp_t type, if you want to store samba dcerpcd temporary files in the /tmp directories.

samba_dcerpcd_var_run_t

  • Set files with the samba_dcerpcd_var_run_t type, if you want to store the samba dcerpcd files under the /run or /var/run directory.
Note: file context can be temporarily modified with the chcon command. If you want to permanently change the file context you need to use the semanage fcontext command. This will modify the SELinux labeling database. You will need to use restorecon to apply the labels.

so: chcon = temporary glow-up πŸ’«, semanage fcontext = permanent, database-committed glow-up πŸ‘‘


⭐ COMMANDS ⭐

semanage fcontext can also be used to manipulate default file context mappings.

semanage permissive can also be used to manipulate whether or not a process type is permissive.

semanage module can also be used to enable/disable/install/remove policy modules.

semanage boolean can also be used to manipulate the booleans.

system-config-selinux is a GUI tool available to customize SELinux policy settings. a GUI!! for when you want to click instead of type πŸ–±οΈβœ¨


πŸ’œ AUTHOR πŸ’œ

This manual page was auto-generated using sepolicy manpage .

(yes, auto-generated, and yet here she is, serving looks πŸŽ€)


🌟 SEE ALSO 🌟

selinux(8), samba_dcerpcd(8), semanage(8), restorecon(8), chcon(1), sepolicy(8), setsebool(8)

go read those too, bestie, they're all interconnected, it's giving lore πŸ¦‹


and that's the whole page!! πŸ’– cute little sign-off: this was samba_dcerpcd from the samba_dcerpcd_selinux(8) manual, dated 26-10-06. periodt. 🫢✨

πŸ“¦ where this page comes from