UGIDFW(8)
β¨ ugidfw(8) β firewall-like access controls for file system objects β¨
okay so bestie, this is the system manager's manual page for ugidfw, and it's literally giving firewall-like access controls for file system objects. no cap, it's a whole vibe. π
π NAME π
ugidfw β firewall-like access controls for file system objects
β¨ SYNOPSIS β¨
Here's the synopsis vibe check β keep the literal spellings exactly as shown, fr fr:
ugidfw add subject [not] [[!] uid uid | minuid:maxuid] [[!] gid gid |
mingid:maxgid] [[!] jailid jailid] object [not] [[!] uid uid |
minuid:maxuid] [[!] gid gid | mingid:maxgid] [[!] filesys path]
[[!] suid] [[!] sgid] [[!] uid_of_subject] [[!] gid_of_subject]
[[!] type ardbclsp] mode arswxn
ugidfw list
ugidfw set rulenum subject [not] [[!] uid uid | minuid:maxuid] [[!] gid
gid | mingid:maxgid] [[!] jailid jailid] object [not] [[!] uid
uid | minuid:maxuid] [[!] gid gid | mingid:maxgid] [[!] filesys
path] [[!] suid] [[!] sgid] [[!] uid_of_subject] [[!]
gid_of_subject] [[!] type ardbclsp] mode arswxn
ugidfw remove rulenum
π¦ DESCRIPTION π¦
okay so ugidfw gives you an ipfw(8)-like interface to manage access to file system objects by UID and GID, and it's supported by the mac_bsdextended(4) mac(9) policy. iconic.
The arguments are as follows:
add subject ... object ... mode arswxnβ adds a new rule and automatically selects the rule number. See the description ofsetfor syntax information.listβ produces a list of all the currentugidfwrules in the system. that's it, that's the whole snack.set rulenum subject ... object ... mode arswxnβ adds a new rule or modifies an existing rule. The arguments are as follows:rulenumβ rule number. Entries with a lower rule number are applied first; placing the most frequently-matched rules at the beginning of the list (i.e., lower-numbered) will yield a slight performance increase.subject [not] [[!] uid uid | minuid:maxuid] [[!] gid gid | mingid:maxgid] [[!] jailid jailid]β subjects performing an operation must match all the conditions given. A leadingnotmeans that the subject should not match the remainder of the specification. A condition may be prefixed by!to indicate that particular condition must not match the subject. The subject can be required to have a particularuidand/orgid. A range of uids/gids can be specified, separated by a colon. The subject can be required to be in a particular jail with thejailid.object [not] [[!] uid uid | minuid:maxuid] [[!] gid gid | mingid:maxgid] [[!] filesys path] [[!] suid] [[!] sgid] [[!] uid_of_subject] [[!] gid_of_subject] [[!] type ardbclsp]β the rule will apply only to objects matching all the specified conditions. A leadingnotmeans that the object should not match all the remaining conditions. A condition may be prefixed by!to indicate that particular condition must not match the object. Objects can be required to be owned by the user and/or group specified byuidand/orgid. A range of uids/gids can be specified, separated by a colon. The object can be required to be in a particular filesystem by specifying the filesystem usingfilesys. Note, if the filesystem is unmounted and remounted, then the rule may need to be reapplied to ensure the correct filesystem id is used. The object can be required to have thesuidorsgidbits set. The owner of the object can be required to match theuid_of_subjector thegid_of_subjectattempting the operation. The type of the object can be restricted to a subset of the following types.aβ any file typerβ a regular filedβ a directorybβ a block special devicecβ a character special devicelβ a symbolic linksβ a unix domain socketpβ a named pipe (FIFO)
mode arswxnβ similar tochmod(1), each character represents an access mode. If the rule applies, the specified access permissions are enforced for the object. When a character is specified in the rule, the rule will allow for the operation. Conversely, not including it will cause the operation to be denied. The definitions of each character are as follows:aβ administrative operationsrβ read accesssβ access to file attributeswβ write accessxβ execute accessnβ none
remove rulenumβ disables and removes the rule with the specified rule number.
π SEE ALSO π
go give these a read, fr fr:
π HISTORY π
The ugidfw utility first appeared in FreeBSD 5.0. periodt.
π AUTHORS π
This software was contributed to the FreeBSD Project by NAI 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. slay.
π that's the whole page, bestie β from Debian, dated February 24, 2004. go forth and configure, and remember: rules are just boundaries with main character energy π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2002, 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