SETFSMAC(8)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’… setfsmac(8) πŸ’…

okay so bestie, this is the System Manager's Manual page for setfsmac(8), and it’s literally about setting MAC labels on a file hierarchy. vibe check: technical, but make it cute ✨

πŸŽ€ NAME πŸŽ€

setfsmac β€” set MAC label for a file hierarchy

🌸 SYNOPSIS 🌸

setfsmac [-ehqvx] [-f specfile] ... [-s specfile] ... file ...

πŸ¦‹ DESCRIPTION πŸ¦‹

The setfsmac utility takes a list of specification files as input and sets the MAC labels on the specified file system hierarchies. Path names are visited in the order you gave them on the command line, and each tree gets traversed in pre-order. (And generally? Using relative paths instead of absolute paths will not be very useful, no cap.) If multiple entries match a single file, they get combined and applied in a single transaction.

The following options are available:

πŸ’… OPTIONS πŸ’…

  • -e β€” If any file systems are encountered that do not support MAC labelling, treat them as errors instead of warning and skipping them.
  • -f specfile β€” Apply the specifications in specfile to the specified paths. NOTE: Only the first entry for each file is applied; all others are disregarded and silently dropped. Multiple -f arguments may be specified to include multiple specification files.
  • -h β€” When a symbolic link is encountered, change the label of the link rather than the file the link points to.
  • -q β€” Do not print non-fatal warnings during execution.
  • -s specfile β€” Apply the specifications in specfile, but assume the specification format is compatible with the SELinux specfile format. NOTE: Only the first entry for each file is applied; all others are disregarded and silently dropped. The prefix sebsd/ will be automatically prepended to the labels in specfile. Labels matching <<none>> will be explicitly not relabeled. This permits SEBSD to reuse existing SELinux policy specification files.
  • -v β€” Increase the degree of verbosity.
  • -x β€” Do not recurse into new file systems when traversing them.

πŸ“ FILES πŸ“

  • /usr/share/security/lomac-policy.contexts β€” Sample specfile containing LOMAC policy entries.

🌈 EXAMPLES 🌈

See β€œFILES”.

πŸ”₯ SEE ALSO πŸ”₯

mac(3), mac_set_file(3), mac_set_link(3), mac(4), re_format(7), getfmac(8), setfmac(8), mac(9)

πŸ‘‘ AUTHORS πŸ‘‘

This software was contributed to the FreeBSD Project by Network Associates Labs, the Security Research Division of Network Associates Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (β€œCBOSS”), as part of the DARPA CHATS research program.


xoxo, your Debian bestie πŸ’– β€” page date is February 17, 2004, and the manual is setfsmac(8). byeee 🫢

πŸ“¦ where this page comes from