ngie
252de13015
MFC r289195:
...
Integrate the tests from lib/libarchive, usr.bin/cpio, and usr.bin/tar in to
the FreeBSD test suite
functional_test.sh was ported from bin/sh/tests/functional_test.sh, as a
small wrapper around libarchive_test, bsdcpio_test, and bsdtar_test provided
by upstream.
A handful of testcases in lib/libarchive/tests have been disabled as they
were failing when run with kyua test (see BROKEN_TESTS in
lib/libarchive/tests/Makefile)
As a sidenote: this removes the check/test targets from the Makefiles as they
don't match the pattern used in the rest of the FreeBSD test suite.
Sponsored by: EMC / Isilon Storage Division
Conflicts:
lib/libarchive/test
usr.bin/cpio/test
2015-11-15 23:54:34 +00:00
delphij
edf4da8597
MFC r287093:
...
Instead of doing an no-op (|= 0), actually clear the flags in
acl_clear_flags_np.
Reported by: Pascal Drecker <pascal freebsd drecker com>
2015-09-08 01:44:37 +00:00
trasz
e063ea3299
MFC r285873:
...
Update Capsicum and Mandatory Access Control manual pages
to no longer claim they are experimental.
Sponsored by: The FreeBSD Foundation
2015-08-02 09:34:03 +00:00
trasz
11ccf0efe9
MFC r274722:
...
Remove acl_size.c; apparently it was never used.
PR: 194398
Submitted by: ngie@
Sponsored by: The FreeBSD Foundation
2015-01-07 18:38:04 +00:00
trasz
f9abf723a8
MFC r273854:
...
Update acl(3) to expand on NFSv4 ACL support.
Sponsored by: The FreeBSD Foundation
2014-11-29 15:51:48 +00:00
trasz
684c853eed
MFC r273853:
...
Make it clear that ACL flags are NFSv4-only.
Sponsored by: The FreeBSD Foundation
2014-11-29 15:50:13 +00:00
brueffer
031977611b
MFC: r264507
...
Mention Capsicum.
2014-04-23 12:11:14 +00:00
trasz
fd6f73d3a2
MFC r258043:
...
Fix typo.
Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation
2013-12-03 18:35:17 +00:00
trasz
cf3929b055
MFC r258042:
...
Fix description to actually make sense.
Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation
2013-12-03 18:28:18 +00:00
trasz
2f5fcb8328
MFC r258041:
...
Mention acl_get_brand_np(3).
Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation
2013-12-03 18:18:35 +00:00
jilles
d2eb50cd0c
libc: Make various internal file descriptors from fopen() close-on-exec.
2013-08-23 13:59:47 +00:00
eadler
6907881cb8
Fix several typos
...
PR: kern/176054
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
MFC after: 3 days
2013-05-12 16:43:26 +00:00
joel
82a81c78d9
Minor mdoc nits.
2012-05-13 14:16:04 +00:00
gjb
8670397617
General mdoc(7) and typo fixes.
...
PR: 167734
Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org)
MFC after: 3 days
2012-05-11 20:06:46 +00:00
joel
f1a6c7f032
mandoc complains loudly when <TAB>s are misused in columnated lists. Fix
...
this syntax violation and while I'm here also convert <TAB> to Ta and adjust
quotation marks in order to prevent this problem in the future.
2012-03-29 16:02:40 +00:00
eadler
1ef5fe44d3
Remove trailing whitespace per mdoc lint warning
...
Disussed with: gavin
No objection from: doc
Approved by: joel
MFC after: 3 days
2012-03-29 05:02:12 +00:00
joel
39c40cce12
Remove superfluous paragraph macro.
2012-03-25 12:13:24 +00:00
trasz
53df99cb04
Make it possible to use permission sets (full_set, modify_set, read_set
...
and write_set) with setfacl(1).
PR: kern/154113
Submitted by: Shawn Webb <lattera at gmail dot com> (earlier version)
MFC after: 1 month
2011-04-09 07:42:25 +00:00
trasz
eb401e64c1
Move the code around so that libc behaviour does not depend on a variable
...
that was supposed to be kernel-only. There should be no functional changes.
2011-03-22 17:44:07 +00:00
trasz
a751651e6d
Make acl_strip_np(3) use new trivial ACL format for NFSv4 ACls (three
...
entries instead of six). This makes "setfacl -b" do the right thing
for ACLs on ZFS. UFS recognizes both kinds of trivial ACLs; no change
there.
MFC after: 2 months
2011-03-04 17:23:10 +00:00
trasz
62c21ef295
Bump manual page date.
2010-12-13 19:03:10 +00:00
trasz
969e953241
After PSARC/2010/029, "canonical six" no longer exists.
2010-12-13 19:01:23 +00:00
uqs
8ae3afcfad
mdoc: drop redundant .Pp and .LP calls
...
They have no effect when coming in pairs, or before .Bl/.Bd
2010-10-08 12:40:16 +00:00
trasz
3e2d23f909
First step at adopting FreeBSD to support PSARC/2010/029. This makes
...
acl_is_trivial_np(3) properly recognize the new trivial ACLs. From
the user point of view, that means "ls -l" no longer shows plus signs
for all the files when running ZFS v28.
2010-09-20 17:10:06 +00:00
trasz
9925a95918
Arrgh, tested wrong source tree _again_. Fix previous commit. Also,
...
this and previous one are MFC candidate.
MFC after: 1 month
2010-09-09 20:37:19 +00:00
trasz
d7dd2333f7
Add minor optimization. It's less strict than its kernel counterpart
...
due to upcoming ACL changes required by the new ZFS.
2010-09-09 20:07:40 +00:00
joel
52dbc8b634
Spelling fixes.
2010-08-02 16:01:45 +00:00
trasz
01650ad878
Fix acl_from_text(3) - and, therefore, setfacl(1) - for user and group
...
names names starting with a digit.
MFC after: 1 month
2010-07-06 17:20:08 +00:00
trasz
3b22f10bbd
Remove comment which didn't match reality for a long time.
...
Reviewed by: rwatson
2010-07-05 19:01:10 +00:00
kientzle
d044db72cd
Separate _posix1e_acl_id_to_name() into a separate file, to
...
break an unnecessary dependency on getpwuid() and getgrgid().
MFC after: 1 month
2010-06-14 02:26:13 +00:00
trasz
46a01349e9
Don't use pointer to 64 bit value (id_t) to point to 32 bit value (uid_t).
...
Found with: Coverity Prevent
CID: 7466, 7467
MFC after: 2 weeks
2010-06-05 07:40:32 +00:00
trasz
7c23796624
Don't forget to free the string in error case.
...
Found with: Coverity Prevent
CID: 6585
2010-06-03 14:51:29 +00:00
trasz
307713b0cf
_posix1e_acl_sort() never returns anything other than 0; change its
...
return type to void and update callers. This simplifies code and
fixes one place where the returned value was not actually checked.
Found with: Coverity Prevent
CID: 4791
2010-06-03 14:29:17 +00:00
trasz
26f044985f
Fix usage of uninitialized variable.
...
Found with: Coverity Prevent
CID: 7517
MFC after: 2 weeks
2010-06-03 14:27:18 +00:00
trasz
45e71b2250
The 'acl_cnt' field is unsigned; no point in checking if it's >= 0.
...
Found with: Coverity Prevent
CID: 6192
2010-06-03 14:16:58 +00:00
trasz
0463f9931f
The 'acl_cnt' field is unsigned; no point in checking if it's >= 0.
...
Found with: Coverity Prevent
CID: 6193
2010-06-03 14:15:08 +00:00
trasz
2040787fbf
Make acl_get_perm_np(3) work with NFSv4 ACLs.
...
Reviewed by: kientzle@
MFC after: 1 week
2010-05-23 08:12:36 +00:00
trasz
645d8207e1
Make branding less intrusive - in acl_set(3), in case ACL brand
...
is ACL_BRAND_UNKNOWN, do what the programmer says instead of failing.
MFC after: 1 week
2010-05-13 16:44:27 +00:00
trasz
b01f1cf8e0
Make it possible to actually use NFSv4 permission bits with acl_set_perm(3)
...
and acl_delete_perm(3). It went undetected, because neither setfacl(1)
nor Samba use this routines. D'oh.
MFC after: 1 week
2010-05-13 16:42:01 +00:00
uqs
3960614646
mdoc: order prologue macros consistently by Dd/Dt/Os
...
Although groff_mdoc(7) gives another impression, this is the ordering
most widely used and also required by mdocml/mandoc.
Reviewed by: ru
Approved by: philip, ed (mentors)
2010-04-14 19:08:06 +00:00
trasz
b49ccfb35d
Make acl_to_text_np(3) not crash on long group or user names in NFSv4 ACLs.
...
PR: amd64/145091
MFC after: 2 weeks
2010-03-28 17:29:15 +00:00
joel
8a03745eab
Switch to our preferred license text.
...
Approved by: jedgar
2010-03-07 07:59:05 +00:00
joel
0b73196964
Use our standard license text. No more voices in the authors head. :-)
...
Approved by: trasz
2010-03-04 19:38:24 +00:00
trhodes
9aa063fee4
s/APIS/APIs - not part of the original submission.
2010-02-11 19:20:06 +00:00
trhodes
2f0d280191
Correct two typoes.
...
Submitted by: Matthew Seaman <m.seaman@infracaninophile.co.uk>
2010-02-11 14:45:00 +00:00
ed
a922794e92
Don't forget to clean up the file copied from the kernel sources.
...
MFC after: 1 week
2010-01-02 20:27:14 +00:00
markus
de21e8d4af
Use a local copy of entry_d for finding matches. Otherwise, if entry_d pointed
...
to an entry of 'acl', all ACL entries starting with entry_d would be deleted.
Reviewed by: trasz
Approved by: emax (mentor)
MFC after: 3 days
2009-12-25 18:05:06 +00:00
ed
e912442e98
Don't let the C library depend on <utmp.h>.
...
The maximum length of a username has nothing to do with the size of the
username in the utmp files. Use MAXLOGNAME, which is defined as 17
(UT_USERSIZE + 1).
2009-12-05 19:04:21 +00:00
brueffer
0f3100cf28
Fix a memory leak in acl_from_text() in case the conversion succeeded.
...
Submitted by: Jim Wilcoxson <prirun@gmail.com>
MFC after: 1 week
2009-11-16 09:28:22 +00:00
trasz
008ef8cd3b
Fix regression introduced with NFSv4 ACL support - make acl_to_text(3)
...
and acl_calc_mask(3) return error instead of crashing when acl passed
to them is NULL.
Submitted by: markus
Reviewed by: rwatson
MFC after: 3 days
2009-09-01 18:30:17 +00:00