| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
ino_t and dev_t are about to become uint64_t.
Reviewed by: kib, mckusick
Notes:
svn path=/head/; revision=275855
|
|
|
|
| |
Notes:
svn path=/head/; revision=274136
|
|
|
|
|
|
|
| |
from the latter.
Notes:
svn path=/head/; revision=265420
|
|
|
|
|
|
|
| |
This function is only compiled in when building WITH_AUDIT.
Notes:
svn path=/head/; revision=227203
|
|
|
|
| |
Notes:
svn path=/head/; revision=227166
|
|
|
|
|
|
|
|
|
|
|
|
| |
it possible for the kernel to track login class the process is assigned to,
which is required for RCTL. This change also make setusercontext(3) call
setloginclass(2) and makes it possible to retrieve current login class using
id(1).
Reviewed by: kib (as part of a larger patch)
Notes:
svn path=/head/; revision=219304
|
|
|
|
|
|
|
|
|
|
|
|
| |
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
Also add $FreeBSD$ to a few files to keep svn happy.
Discussed with: imp, rwatson
Notes:
svn path=/head/; revision=216370
|
|
|
|
|
|
|
| |
Also add some missing $FreeBSD$ to keep svn happy.
Notes:
svn path=/head/; revision=201386
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
system callers of getgroups(), getgrouplist(), and setgroups() to
allocate buffers dynamically. Specifically, allocate a buffer of size
sysconf(_SC_NGROUPS_MAX)+1 (+2 in a few cases to allow for overflow).
This (or similar gymnastics) is required for the code to actually follow
the POSIX.1-2008 specification where {NGROUPS_MAX} may differ at runtime
and where getgroups may return {NGROUPS_MAX}+1 results on systems like
FreeBSD which include the primary group.
In id(1), don't pointlessly add the primary group to the list of all
groups, it is always the first result from getgroups(). In principle
the old code was more portable, but this was only done in one of the two
places where getgroups() was called to the overall effect was pointless.
Document the actual POSIX requirements in the getgroups(2) and
setgroups(2) manpages. We do not yet support a dynamic NGROUPS, but we
may in the future.
MFC after: 2 weeks
Notes:
svn path=/head/; revision=194494
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
them (for example when they have logged in from an ip6 source).
- Stick with the initial call to getaudit(2), if it returns E2BIG, use
getaudit_addr(2) instead and set the "extended" flag to indicate that
we the calling credential has an extended subject state.
- Additionally, add the printing of the machine/at_addr (the ip/ip6
addresses)
MFC after: 1 week
Obtained from: TrustedBSD Project
Notes:
svn path=/head/; revision=172621
|
|
|
|
|
|
|
|
|
|
| |
additional group entries.
PR: 107298
Submitted by: Joost Bekkers
Notes:
svn path=/head/; revision=165626
|
|
|
|
| |
Notes:
svn path=/head/; revision=165496
|
|
|
|
|
|
|
| |
user executing the command cannot be looked up in the password file.
Notes:
svn path=/head/; revision=165028
|
|
|
|
|
|
|
|
|
|
|
| |
discussed on src-committers. This is intentionally not included in the
usage() function as it would confuse the output too much.
Approved by: jhb
MFC after: 1 week
Notes:
svn path=/head/; revision=162672
|
|
|
|
| |
Notes:
svn path=/head/; revision=162656
|
|
|
|
|
|
|
|
|
|
| |
as found on Solaris.
Requested by: ceri
MFC after: 3 days
Notes:
svn path=/head/; revision=162578
|
|
|
|
|
|
|
|
|
|
|
| |
audit properties, including the audit user id. This can be quite
helpful in debugging audit problems.
Obtained from: TrustedBSD Project
MFC after: 3 days
Notes:
svn path=/head/; revision=162571
|
|
|
|
|
|
|
|
|
| |
Submitted by: Martin Nagy <nagy.martin@gmail.com>
PR: 96239
MFC after: 2 weeks
Notes:
svn path=/head/; revision=159008
|
|
|
|
|
|
|
|
|
|
|
|
| |
to the id_print() function.
Use getgrouplist(3) for the case when an user was specified,
and getgroups(2) when no user was given.
That reverts to the expected behaviour and makes it easy to
implement an option later to force using getgrouplist(3).
Notes:
svn path=/head/; revision=145672
|
|
|
|
| |
Notes:
svn path=/head/; revision=145671
|
|
|
|
|
|
|
|
|
| |
NGROUPS groups. getgrouplist(3) may put a duplicate group
id into the passed array (it sets [0] and [1] to the value
of the gid argument), but id_print() sorts them out.
Notes:
svn path=/head/; revision=145629
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Showing the ids of both an user given by an argument to `id',
and the current user, is now handled in a single function.
Displaying the current user's ids was inaccurate because
getgroups(2) had been used. getgroups(2) returns the current
kernel state of a user's groups, which may not always be
correct if /etc/group was recently changed.
- Fix a few style bugs.
PR: bin/78085
Notes:
svn path=/head/; revision=145628
|
|
|
|
| |
Notes:
svn path=/head/; revision=144840
|
|
|
|
| |
Notes:
svn path=/head/; revision=140368
|
|
|
|
|
|
|
| |
PR: 56646
Notes:
svn path=/head/; revision=136051
|
|
|
|
|
|
|
| |
Bump WARNS to 6 while I'm here.
Notes:
svn path=/head/; revision=129458
|
|
|
|
| |
Notes:
svn path=/head/; revision=129402
|
|
|
|
|
|
|
|
|
|
|
| |
to print the MAC label of the current process. "-M" selected as that's
what is used in Trusted IRIX.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, McAfee Research
Notes:
svn path=/head/; revision=128900
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.
Reviewed by: md5
Notes:
svn path=/head/; revision=102944
|
|
|
|
| |
Notes:
svn path=/head/; revision=102084
|
|
|
|
| |
Notes:
svn path=/head/; revision=99112
|
|
|
|
| |
Notes:
svn path=/head/; revision=92920
|
|
|
|
|
|
|
| |
help the GCC3 transition and CURRENT in general.
Notes:
svn path=/head/; revision=90415
|
|
|
|
| |
Notes:
svn path=/head/; revision=83452
|
|
|
|
| |
Notes:
svn path=/head/; revision=83409
|
|
|
|
| |
Notes:
svn path=/head/; revision=81687
|
|
|
|
| |
Notes:
svn path=/head/; revision=79535
|
|
|
|
|
|
|
| |
Tested on i386 and alpha.
Notes:
svn path=/head/; revision=77314
|
|
|
|
|
|
|
|
| |
Reviewed by: ru, sheldonh
Inspired by: OpenBSD, NetBSD
Notes:
svn path=/head/; revision=76907
|
|
|
|
| |
Notes:
svn path=/head/; revision=74848
|
|
|
|
| |
Notes:
svn path=/head/; revision=68963
|
|
|
|
| |
Notes:
svn path=/head/; revision=68384
|
|
|
|
| |
Notes:
svn path=/head/; revision=58603
|
|
|
|
| |
Notes:
svn path=/head/; revision=51032
|
|
|
|
| |
Notes:
svn path=/head/; revision=50979
|
|
|
|
| |
Notes:
svn path=/head/; revision=50775
|
|
|
|
| |
Notes:
svn path=/head/; revision=50477
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
track.
The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;
.\" $Id$
.\"
If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.
Approved by: bde
Notes:
svn path=/head/; revision=48792
|
|
|
|
| |
Notes:
svn path=/head/; revision=48566
|
|
|
|
|
|
|
| |
Submitted by: terry
Notes:
svn path=/head/; revision=38468
|