diff options
author | jh <jh@FreeBSD.org> | 2010-10-29 15:03:29 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2010-10-29 15:03:29 +0000 |
commit | 06e9f5ed891af8cd098a8e5620da7bde0daa6293 (patch) | |
tree | 31359f2ea2925119e5ebaa312756f1428e1b9e51 | |
parent | 02fc29905a4dce85a2476ac3352103f840dda31a (diff) | |
download | FreeBSD-src-06e9f5ed891af8cd098a8e5620da7bde0daa6293.zip FreeBSD-src-06e9f5ed891af8cd098a8e5620da7bde0daa6293.tar.gz |
- Note that non-superusers are not allowed to set the SF_ARCHIVED
flag. [1]
- Note that also fchflags(2) will return EPERM for attempts to set or
unset the SF_SNAPSHOT flag.
Submitted by: Garrett Cooper [1]
MFC after: 1 week
-rw-r--r-- | lib/libc/sys/chflags.2 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/sys/chflags.2 b/lib/libc/sys/chflags.2 index 7780427..79f2fe0 100644 --- a/lib/libc/sys/chflags.2 +++ b/lib/libc/sys/chflags.2 @@ -28,7 +28,7 @@ .\" @(#)chflags.2 8.3 (Berkeley) 5/2/95 .\" $FreeBSD$ .\" -.Dd May 16, 2006 +.Dd Oct 29, 2010 .Dt CHFLAGS 2 .Os .Sh NAME @@ -155,7 +155,7 @@ is set and the user is either not the super-user or securelevel is greater than 0. .It Bq Er EPERM A non-super-user tries to set one of -.Dv SF_IMMUTABLE , SF_APPEND , +.Dv SF_ARCHIVED , SF_IMMUTABLE , SF_APPEND , or .Dv SF_NOUNLINK . .It Bq Er EPERM @@ -200,9 +200,13 @@ is set and the user is either not the super-user or securelevel is greater than 0. .It Bq Er EPERM A non-super-user tries to set one of -.Dv SF_IMMUTABLE , SF_APPEND , +.Dv SF_ARCHIVED , SF_IMMUTABLE , SF_APPEND , or .Dv SF_NOUNLINK . +.It Bq Er EPERM +User tries to set or remove the +.Dv SF_SNAPSHOT +flag. .It Bq Er EROFS The file resides on a read-only file system. .It Bq Er EIO |