Craig Rodrigues
9762525c95
Adding missing declarations to eliminate -Wmissing-prototypes warnings
2015-09-20 04:06:55 +00:00
Edward Tomasz Napierala
45d55945fd
Make it possible to use acl_create_entry_np(3) to use first entry to an
...
empty ACL, and to append an entry to an ACL.
Submitted by: sef@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-09-08 14:52:14 +00:00
Xin LI
28ffe927c2
Expose an interface to determine if an ACE is inherited.
...
Submitted by: sef
Reviewed by: trasz
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D3540
2015-09-04 00:14:20 +00:00
Edward Tomasz Napierala
8e6acc531a
Fix acl_strip_np(3) breakage introduced in r279962.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-09-03 11:31:34 +00:00
Edward Tomasz Napierala
b0f957f94a
Fix the way acl_init(3) uses posix_memalign(3) - the latter doesn't
...
set errno.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-09-03 11:30:39 +00:00
Xin LI
34103b3cac
Instead of doing an no-op (|= 0), actually clear the flags in
...
acl_clear_flags_np.
MFC after: 2 weeks
2015-08-24 04:49:20 +00:00
Edward Tomasz Napierala
208a8b9532
Update Capsicum and Mandatory Access Control manual pages
...
to no longer claim they are experimental.
Reviewed by: rwatson@, wblock@
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2985
2015-07-25 15:56:49 +00:00
Pedro F. Giffuni
cf0f0b800c
libc: plug memory leaks in edge cases for the posix1e code.
...
CID: 1016705
CID: 1016706
CID: 1016707
Differential Revision: https://reviews.freebsd.org/D2023
2015-03-13 18:42:43 +00:00
Christian Brueffer
0aee91e1fb
Various mdoc fixes and a few EOL whitespace removals.
...
Found with: mandoc -Tlint
2014-12-21 12:36:36 +00:00
Edward Tomasz Napierala
c07b9c32f0
Remove acl_size.c; apparently it was never used.
...
PR: 194398
Submitted by: ngie@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-11-19 19:43:39 +00:00
Edward Tomasz Napierala
62bf353355
Update acl(3) to expand on NFSv4 ACL support.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-10-30 10:56:38 +00:00
Edward Tomasz Napierala
02c55812ad
Make it clear that ACL flags are NFSv4-only.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-10-30 10:49:50 +00:00
Baptiste Daroussin
8fbf3d50e3
use .Mt to mark up email addresses consistently (part4)
...
PR: 191174
Submitted by: Franco Fichtner <franco at lastsummer.de>
2014-06-23 08:25:03 +00:00
Christian Brueffer
fb50471ca9
Correct sorting.
2014-04-15 16:31:23 +00:00
Christian Brueffer
e27a4d582f
Mention Capsicum.
...
MFC after: 1 week
2014-04-15 16:29:21 +00:00
Marcel Moolenaar
8876613dc5
Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}
...
if not already defined. This allows building libc from outside of
lib/libc using a reach-over makefile.
A typical use-case is to build a standard ILP32 version and a COMPAT32
version in a single iteration by building the COMPAT32 version using a
reach-over makefile.
Obtained from: Juniper Networks, Inc.
2014-03-04 02:19:39 +00:00
Edward Tomasz Napierala
af2b4c05e2
Fix typo.
...
Sponsored by: The FreeBSD Foundation
2013-11-12 12:23:54 +00:00
Edward Tomasz Napierala
d5767efd88
Fix description to actually make sense.
...
Sponsored by: The FreeBSD Foundation
2013-11-12 12:22:52 +00:00
Edward Tomasz Napierala
ce157d5c55
Mention acl_get_brand_np(3).
...
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2013-11-12 10:44:41 +00:00
Jilles Tjoelker
a93705b06e
libc: Make various internal file descriptors from fopen() close-on-exec.
2013-08-23 13:59:47 +00:00
Eitan Adler
a164074fc4
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 Dahl
35471bf8ef
Minor mdoc nits.
2012-05-13 14:16:04 +00:00
Glen Barber
a3fb6da9ba
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 Dahl
288eac5aed
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
Eitan Adler
50d675f7a9
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 Dahl
41949a1ed5
Remove superfluous paragraph macro.
2012-03-25 12:13:24 +00:00
Edward Tomasz Napierala
181b4eebb9
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
Edward Tomasz Napierala
cdec385674
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
Edward Tomasz Napierala
e43af6d3b6
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
Edward Tomasz Napierala
2506c55201
Bump manual page date.
2010-12-13 19:03:10 +00:00
Edward Tomasz Napierala
eda09cb3ff
After PSARC/2010/029, "canonical six" no longer exists.
2010-12-13 19:01:23 +00:00
Ulrich Spörlein
0d9deed52c
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
Edward Tomasz Napierala
4089cc8aa1
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
Edward Tomasz Napierala
781413510d
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
Edward Tomasz Napierala
7eaa29b5d8
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 Dahl
edfa427cf1
Spelling fixes.
2010-08-02 16:01:45 +00:00
Edward Tomasz Napierala
f59646c2af
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
Edward Tomasz Napierala
ec1f83f78e
Remove comment which didn't match reality for a long time.
...
Reviewed by: rwatson
2010-07-05 19:01:10 +00:00
Tim Kientzle
2ca090b308
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
Edward Tomasz Napierala
eec80038e3
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
Edward Tomasz Napierala
a3a11ad455
Don't forget to free the string in error case.
...
Found with: Coverity Prevent
CID: 6585
2010-06-03 14:51:29 +00:00
Edward Tomasz Napierala
d72fb30a43
_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
Edward Tomasz Napierala
7945d60d1e
Fix usage of uninitialized variable.
...
Found with: Coverity Prevent
CID: 7517
MFC after: 2 weeks
2010-06-03 14:27:18 +00:00
Edward Tomasz Napierala
18c12a53a1
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
Edward Tomasz Napierala
d243a85e99
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
Edward Tomasz Napierala
9fcd375657
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
Edward Tomasz Napierala
1ccc2ae37f
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
Edward Tomasz Napierala
6a3cf4c80b
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
Ulrich Spörlein
aa12cea2cc
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
Edward Tomasz Napierala
48463a6747
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