SETFSMAC(8)
π
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.-fspecfile β 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-farguments 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.-sspecfile β 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 prefixsebsd/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
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2003, 2004 Networks Associates Technology, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms