summaryrefslogtreecommitdiffstats
path: root/usr.sbin/extattrctl/extattrctl.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2000-04-20 20:32:43 +0000
committerrwatson <rwatson@FreeBSD.org>2000-04-20 20:32:43 +0000
commit51d4afa1a6e67d4db34a9651496b097ff3e99402 (patch)
treecdadd3f09d40d74bab11a3374d5322b869a5377c /usr.sbin/extattrctl/extattrctl.c
parentbcd52d23a79386fd25fe196d96f8606bcf3c7063 (diff)
downloadFreeBSD-src-51d4afa1a6e67d4db34a9651496b097ff3e99402.zip
FreeBSD-src-51d4afa1a6e67d4db34a9651496b097ff3e99402.tar.gz
o Update extattrctl.8 to reflect new initattr -p, -r, and -w options.
o Update extattrctl.c to default new attributes to readable and writable only by the kernel and root user. Previously the default was to allow the file owner to directory view and manipulate the attributes, which is probably an inappropriate default.
Diffstat (limited to 'usr.sbin/extattrctl/extattrctl.c')
-rw-r--r--usr.sbin/extattrctl/extattrctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/extattrctl/extattrctl.c b/usr.sbin/extattrctl/extattrctl.c
index 96a8a18..839e563 100644
--- a/usr.sbin/extattrctl/extattrctl.c
+++ b/usr.sbin/extattrctl/extattrctl.c
@@ -111,8 +111,8 @@ initattr(int argc, char *argv[])
char *fs_path = NULL;
char *zero_buf = NULL;
long loop, num_inodes;
- int initattr_rlevel = UFS_EXTATTR_PERM_OWNER;
- int initattr_wlevel = UFS_EXTATTR_PERM_OWNER;
+ int initattr_rlevel = UFS_EXTATTR_PERM_ROOT;
+ int initattr_wlevel = UFS_EXTATTR_PERM_ROOT;
int ch, i, error;
optind = 0;
OpenPOWER on IntegriCloud