aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/extattrctl
Commit message (Collapse)AuthorAgeFilesLines
* The .Nm utilityPhilippe Charnier2002-07-141-2/+3
| | | | Notes: svn path=/head/; revision=99968
* Cross-reference with ffs(7).Chris Costello2002-06-271-0/+1
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=98905
* Make it clear that this applies only to UFS1 file systems, as UFS2 willRobert Watson2002-06-221-3/+3
| | | | | | | | | | | have native extended attributes rather than stacked extended attributes. While I'm at it, make sure UFS_EXTATTR is not spelt FFS_EXTATTR. Sponsored by: DARPA, NAI Labs Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=98602
* Clean up usage message: don't put optional parameter's in brackets.Robert Watson2002-04-191-7/+7
| | | | | | | | | | | Update copyright date. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Extracted from: green Notes: svn path=/head/; revision=95018
* Simplify and optimize. This speeds up 'initattr' enormously for smallDag-Erling Smørgrav2002-04-061-41/+29
| | | | | | | attribute sizes (up to two orders of magnitude!) Notes: svn path=/head/; revision=93928
* o Add a 'showattr' function the extattrctl, allowing a backing file toRobert Watson2001-12-312-0/+50
| | | | | | | be inspected to show the maximum attribute size and file. Notes: svn path=/head/; revision=88740
* Make extattrctl WARNS?=2-safe:Chris D. Faulhaber2001-11-272-8/+7
| | | | | | | | | | | | | o remove extraneous extern's o prototype functions o combine multiple return (0)'s into a single return (0) at the end of main() Approved by: rwatson Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=86994
* o Reflect moving of extattr_namespace calls to libc from libutil; noRobert Watson2001-11-161-3/+0
| | | | | | | | | | longer need to link libutil into command-line extended attribute utilities. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=86453
* o Update copyright dates, comments...Robert Watson2001-11-152-3/+11
| | | | | | | Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=86429
* o extattrctl initattr, when pre-allocating store for extended attributes,Robert Watson2001-11-151-4/+4
| | | | | | | | | | | | | | | computed a a chunksize that didn't include the extended attribute header. This was a non-fatal error, in that it was just writing out zeros anyway, but did have the effect of not pre-allocating the right amount of disk space. This fix calculates chunksize to include the attribute header. Submitted by: Dale Rahn Sponsored by: DARPA, UPenn POSSE Project Obtained from: OpenBSD Notes: svn path=/head/; revision=86428
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-201-0/+1
| | | | | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before. Notes: svn path=/head/; revision=80029
* Remove GCC'isms in CFLAGS.David E. O'Brien2001-07-201-1/+0
| | | | Notes: svn path=/head/; revision=80022
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.Dima Dorfman2001-07-091-1/+0
| | | | Notes: svn path=/head/; revision=79454
* Fix LDADD and add missing DPADD.Ruslan Ermilov2001-03-271-2/+4
| | | | Notes: svn path=/head/; revision=74866
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816
* Set the default manual section for usr.sbin/ to 8.Ruslan Ermilov2001-03-201-2/+0
| | | | Notes: svn path=/head/; revision=74532
* o Rename "namespace" argument to "attrnamespace" as namespace is a C++Robert Watson2001-03-192-13/+13
| | | | | | | | | | reserved word. Submitted by: jkh Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=74441
* Correct the arguments to the extattrct()l call so that the enable andThomas Moestl2001-03-171-3/+3
| | | | | | | | | disable commands work as documented. Approved by: rwatson Notes: svn path=/head/; revision=74394
* mdoc(7) police: -mdoc still has a nine-arguments limitation.Ruslan Ermilov2001-03-161-2/+2
| | | | Notes: svn path=/head/; revision=74350
* o Update extattrctl to take into account the updated EA interface withRobert Watson2001-03-153-23/+59
| | | | | | | | | | | explicit namespaces. Modify it to use libutil for string/constant namespace conversions. Update the documentation to take into account the new interface. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=74275
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-1/+1
| | | | Notes: svn path=/head/; revision=71898
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-271-0/+1
| | | | Notes: svn path=/head/; revision=70403
* o Check return of strdup() for NULL, abort if so.Robert Watson2000-12-141-1/+4
| | | | | | | Submitted by: jedgar Notes: svn path=/head/; revision=70003
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-5/+5
| | | | Notes: svn path=/head/; revision=68965
* o What a good idea, ``-o'' should be a ``-f'' like in every otherRobert Watson2000-09-122-6/+6
| | | | | | | | | | utility that is cautious but sometimes you want to be less cautious. Go figure. Submitted by: sheldonh Notes: svn path=/head/; revision=65777
* o Add a ``-o'' argument to initattr, which causes extattrctl to overwriteRobert Watson2000-09-122-4/+20
| | | | | | | | | | | | the existing attribute file rather than aborting with an error. o Useful if you want to reset the state of attributes on the system without allocating different disk blocks through deletion and recreation, for example, if you're doing benchmarks of extended attribute code. :-) Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=65767
* o When pre-allocating attribute storage space, also allocate space forRobert Watson2000-09-071-3/+5
| | | | | | | | | | attribute instance headers, or higher inode numbers will require additional disk blocks to be allocated later. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=65589
* Whitespace-only: remove the only hard sentence break in the file.Sheldon Hearn2000-09-041-1/+2
| | | | Notes: svn path=/head/; revision=65434
* Modify extended attribute protection model to authorize based onRobert Watson2000-09-022-76/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | attribute namespace and DAC protection on file: - Attribute names beginning with '$' are in the system namespace - The attribute name "$" is reserved - System namespace attributes may only be read/set by suser() or by kernel (cred == NULL) - Other attribute names are in the application namespace - The attribute name "" is reserved - Application namespace attributes are protected in the manner of the target file permission o Kernel changes - Add ufs_extattr_valid_attrname() to check whether the requested attribute "set" or "enable" is appropriate (i.e., non-reserved) - Modify ufs_extattr_credcheck() to accept target file vnode, not to take inode uid - Modify ufs_extattr_credcheck() to check namespace, then enforce either kernel/suser for system namespace, or vaccess() for application namespace o EA backing file format changes - Remove permission fields from extended attribute backing file header - Bump extended attribute backing file header version to 3 o Update extattrctl.c and extattrctl.8 - Remove now deprecated -r and -w arguments to initattr, as permissions are now implicit - (unrelated) fix error reporting and unlinking during failed initattr to remove duplicate/inaccurate error messages, and to only unlink if the failure wasn't in the backing file open() Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=65377
* o Other half of Sheldon's patch to fix initattr arguments, mistakenlyRobert Watson2000-07-121-0/+3
| | | | | | | | | forgotten due to minimal sleep. Thanks! Submitted by: sheldonh Notes: svn path=/head/; revision=63019
* o update extattrctl man page to reflect obligatory arguments to initattrRobert Watson2000-07-121-2/+2
| | | | | | | | | -r and -w arguments Submitted by: sheldonh Notes: svn path=/head/; revision=63018
* o Correct getopt() argument so that initattr -r and -w take an additionalRobert Watson2000-07-121-1/+1
| | | | | | | | | | | | argument via optarg. This corrects a segfault when initattr is invoked with either of these two arguments. Not sure how this got broken given that in the original patches it was fine -- presumably a merging mistake. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=62995
* Minor mdoc markup fixes.Sheldon Hearn2000-05-101-4/+3
| | | | | | | Reviewed by: maintainer Notes: svn path=/head/; revision=60326
* o Update extattrctl.8 to reflect new initattr -p, -r, and -w options.Robert Watson2000-04-202-4/+41
| | | | | | | | | | 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. Notes: svn path=/head/; revision=59446
* o Allow the ``-p'' argument to be specified to initattr, which indicatesRobert Watson2000-04-201-8/+46
| | | | | | | | | | | | | | that space for extended attributes should be preallocated, instead of using a sparse attribute file. NOTE: This can result in a really large file full of zeros. However, it can prevent a low disk condition from causing an attribute write to fail, which is good for security and consistency attributes. o Unlink the attribute file during initattr if an error occurs -- this is alright, as we specify O_CREAT when opening the file. Notes: svn path=/head/; revision=59445
* o Update initattr to add magic numbers and version numberRobert Watson2000-04-191-35/+99
| | | | Notes: svn path=/head/; revision=59401
* Change "FreeBSD 5.0" to ".Fx 5.0"Chris Costello2000-04-161-1/+2
| | | | Notes: svn path=/head/; revision=59269
* Introduced /usr/sbin/extattrctl, a utility for managing UFS/FFS extendedRobert Watson2000-04-153-0/+260
attributes (recently committed). Using extattrctl, the extended attribute service may be started and stopped for specific file systems; specific attributes may be enabled or disabled, and the backing file for each attribute configured. Also, backing files may be initialized. Reviewed by: adrian, bp, freebsd-fs, the unthanked masses Obtained from: TrustedBSD Notes: svn path=/head/; revision=59247