summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2001-04-03 17:58:25 +0000
committerrwatson <rwatson@FreeBSD.org>2001-04-03 17:58:25 +0000
commitf39773137b9edf7e33930fa5391ecff92867c202 (patch)
treee1d4e1c0d16388ecce7c169e4de9386a3f087d93 /sys/ufs
parentd43ef707bac660c5c4babb0d8d8560fb34792bc7 (diff)
downloadFreeBSD-src-f39773137b9edf7e33930fa5391ecff92867c202.zip
FreeBSD-src-f39773137b9edf7e33930fa5391ecff92867c202.tar.gz
o Introduce a README file describing briefly how to use access control
lists, in the style of FFS README files for soft updates and snapshots. Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/README.acls51
1 files changed, 51 insertions, 0 deletions
diff --git a/sys/ufs/ufs/README.acls b/sys/ufs/ufs/README.acls
new file mode 100644
index 0000000..acaf2f0
--- /dev/null
+++ b/sys/ufs/ufs/README.acls
@@ -0,0 +1,51 @@
+$FreeBSD$
+
+ UFS Access Control Lists Copyright
+
+The UFS Access Control Lists implementation is copyright Robert Watson,
+and is made available under a Berkeley-style license.
+
+About UFS Access Control Lists (ACLs)
+
+Access control lists allow the association of fine-grained discretionary
+access control information with files and directories, extending the
+base UNIX permission model in a (mostly) compatible way. This
+implementation largely follows the POSIX.1e model, and relies on the
+availability of extended attributes to store extended components of
+the ACL, while maintaining the base permission information in the inode.
+
+Using UFS Access Control Lists (ACLs)
+
+Support for UFS access control lists may be enabled by adding:
+
+ options UFS_ACL
+
+to your kernel configuration. As ACLs rely on the availability of extended
+attributes, you must also enable support for extended attributes on the
+underlying file system. Currently, this requires the use of UFS EAs, which
+may be enabled by adding:
+
+ options UFS_EXTATTR
+
+to your kernel. Because of file system mount atomicity requirements,
+it is also recommended that:
+
+ options UFS_EXTATTR_AUTOSTART
+
+be added to the kernel so as to support the atomic enabling of the
+required extended attributes with the file system mount operation. To
+enable ACLs, two extended attributes must be available in the
+EXTATTR_NAMESPACE_SYSTEM namespace: "posix1e.acl_access", which holds
+the access ACL, and "posix1e.acl_default" which holds the default ACL
+for directories. If you're using UFS Extended Attributes, the following
+commands may be used to create the necessary EA backing files for
+ACLs in the file system root of each file system. In these examples,
+the root file system is used; see README.extattr for more details.
+
+ mkdir /.attribute /.attribute/system
+ cd /.attribute/system
+ extattrctl initattr -p / 388 posix1e.acl_access
+ extattrctl initattr -p / 388 posix1e.acl_default
+
+On the next mount of the root file system, the attributes will be
+automatically started, and ACLs will be enabled.
OpenPOWER on IntegriCloud