yar
31192e1f32
Document the quirks of ~/.login_conf and LOGIN_MECLASS.
2007-06-14 09:33:37 +00:00
yar
aece401e56
Improve mdoc(7) markup.
2007-06-14 07:31:59 +00:00
yar
9790f8d691
Update some comments, mostly regarding LOGIN_MECLASS and ~/.login_conf.
2007-06-14 06:42:49 +00:00
des
7e2e8064f7
Nit: avoid shadowing truncate(2) with a local variable.
2007-05-23 12:09:33 +00:00
des
aac7a2ca82
Fix stupid braino in previous commit.
2007-05-23 10:06:03 +00:00
des
253a9fb8b6
If (flags & O_TRUNC), don't truncate the file until we've successfully
...
locked it.
MFC after: 3 weeks
2007-05-23 08:12:34 +00:00
deischen
ff36458e08
Bump library versions in preparation for 7.0.
...
Ok'd by: kan
2007-05-21 02:49:08 +00:00
des
719c87d1ee
strlcpy() may be faster than snprintf(), but it is less portable, and this
...
is not performance critical code anyway. Also, avoid using strlen() to
obtain information which we already have.
MFC after: 3 weeks
2007-05-11 11:10:05 +00:00
des
4503779c68
Fix typo.
...
Submitted by: Bård Skaflestad <bardsk@math.ntnu.no>
2007-05-10 18:15:30 +00:00
des
ced6c23397
Well gag me with a spoon... I'm so used to working at high WARNS levels
...
that I make stupid fundamental mistakes like this when I don't.
2007-05-10 15:01:42 +00:00
des
2c5ccfbba9
Remove superfluous unexpanded RCS tag.
2007-05-10 14:56:07 +00:00
des
82f6d6455d
Use flopen(3).
...
MFC after: 3 weeks
2007-05-10 14:54:53 +00:00
des
50d71f5464
DTRT when O_NONBLOCK is specified.
...
MFC after: 3 weeks
2007-05-10 14:52:57 +00:00
des
5d25ea6b62
I'm tired of seeing this done incorrectly and non-portably, so add a
...
flopen(3) function which reliably opens and locks a file.
MFC after: 3 weeks
2007-05-10 14:43:31 +00:00
yar
1008fb2fea
Fix one kind of style(9) bug and a typo in a comment.
...
Tested with: md5(1)
2007-05-01 18:50:33 +00:00
imp
130ae175fc
Remove California Regent's clause 3, per letter
2007-01-09 01:02:06 +00:00
trhodes
444451185b
Fix a typo: "the give login class" to "the given login class."
...
PR: 75577
Submitted by: Nobuyuki Koganemaru
2006-11-05 19:00:08 +00:00
ru
c23de2fec8
Fix markup in previous revision.
2006-10-10 08:15:08 +00:00
trhodes
f19a940255
Add information on how to escape a literal colon in a value or name.
...
PR: 101262
2006-10-09 22:35:02 +00:00
ru
81bed6b884
Revise markup in recently added manpages.
2006-09-30 10:34:13 +00:00
ru
f4eec08060
Markup fixes.
2006-09-17 21:27:35 +00:00
thomas
e5de30ab6d
Minor comment fix.
2006-09-08 08:14:32 +00:00
thomas
2bf8d53a14
(pw_copy): Handle the case of a malformed line in master.passwd
...
(copy it silently, do not dereference NULL pointer).
PR: bin/102848
Reviewed by: security-officer (cperciva)
MFC after: 1 week
2006-09-04 15:09:21 +00:00
yar
7815d31aea
Recognize the existence of auth' and
auth-type'
...
capabilities but tell they do nothing in the base system.
This is a late responce to
http://docs.freebsd.org/cgi/mid.cgi?ED759F1DC5ADD74592DD063B1EDEDAF803ACD2B5
.
Obtained from: OpenBSD (wording; with minor corrections)
2006-08-23 09:54:46 +00:00
yar
c6e8412606
style.Makefile(5) is good for our eyes.
2006-07-27 12:36:46 +00:00
imp
5d17f2bbe1
Note the convention that humanize_number follows.
...
Add 'engineering' numbers to table.
2006-07-15 20:53:36 +00:00
maxim
9db24c22ff
o Add missed comma, xref kld(4).
2006-07-12 14:33:52 +00:00
brian
b33fcf8840
Remove some unused variables
2006-06-23 01:42:03 +00:00
maxim
3c4a758003
o Typo: ownship -> ownership.
...
Obtained from: DragonFlyBSD
2006-06-17 07:25:58 +00:00
akiyama
f9f3be843b
Specify default path for SHLIBDIR before bsd.own.mk does.
...
This fix shared library installed correct place.
2006-06-11 09:14:06 +00:00
delphij
1489501378
Don't build IPv6 support if we have choosen not to have it.
2006-06-09 18:11:29 +00:00
delphij
43da20f970
- Add include for libutil.h and string.h for prototype.
...
- Cast the rvalue to be compared with the result of
strlen() to size_t.
2006-05-25 04:01:04 +00:00
ume
2d16d1ab8e
Bump library majro version for gethostbyaddr(3).
2006-05-21 15:15:21 +00:00
brueffer
7ea2a54c0b
Document how the backoff delay is calculated.
...
Submitted by: markus
MFC after: 3 days
2006-04-19 17:46:27 +00:00
jmg
a2a4e2db32
use pwrite to always write at the begining of the file.. If multiple calls
...
to pidfile_write happen, the pidfile will have nul characters prepended
due to the cached file descriptor offset...
Reviewed by: scottl
MFC after: 3 days
2006-04-11 23:10:02 +00:00
keramida
4465edc46a
Use intmax_t' instead of plain
int' for pid_t casts.
...
Useful tips from: ru, bde
Approved by: pjd
MFC after: 3 days
2006-03-04 15:20:28 +00:00
des
748c235cfd
Add utility functions for checking if a given kernel module is loaded,
...
and loading it.
2006-02-18 11:25:28 +00:00
pjd
b5f41824ae
- Add a note that passing NULL to pidfile_write(), pidfile_remove() and
...
pidfile_close() functions is safe. This possibility is used in example code.
- Cast pid_t to int.
Requested by: yar
2006-01-28 14:13:15 +00:00
cognet
b7565a36f0
Teach openpty() how to deal with pts.
2006-01-26 01:33:26 +00:00
rwatson
2ec0453929
Restore use of strncpy(), as there is later unconditional termination
...
of the string, and reliance on the returned pointer.
Found by: bde (tm)
2006-01-16 11:54:07 +00:00
rwatson
2ad9f38f26
Replace strncpy() with strlcpy() when parsing login time limit strings
...
from /etc/login.conf, or an unterminated string buffer could result.
Probably, login_times.c should reject excessively long time strings as
unparseable, rather than truncating, which might render an invalid
string valid.
Found with: Coverity Prevent (tm)
Reviewed by: csjp
MFC after: 3 days
2006-01-16 00:52:20 +00:00
rwatson
b4fd2a3c90
Fix typo in comment.
...
MFC after: 3 days
2006-01-16 00:28:11 +00:00
csjp
3c839b2489
Document the LOGIN_SETMAC setusercontext(3) flag. While we are here, drop
...
in an external reference to mac_set_proc(3).
2005-12-30 06:16:20 +00:00
jhb
7091045951
Restore the previous state after a FILL operation in properties_read()
...
rather than forcing the state to LOOK. If we are in the middle of parsing
a line when we have to do a FILL we would have lost any token we were in
the middle of parsing and would have treated the next character as being
at the start of a new line instead.
PR: kern/89181
Submitted by: Antony Mawer gnats at mawer dot org
MFC after: 1 week
2005-11-28 16:30:16 +00:00
ru
5bd42d0a34
Fix prototype.
2005-11-24 11:29:11 +00:00
ru
6e1cf27cb4
Fix markup, grammar and spelling.
2005-11-18 14:21:28 +00:00
brooks
87f2281f65
When removing the local domain, only do so when the result will be a
...
host name. This is matches the documented behaviro. The previous
behavior would remove the domain name even if the result retained a dot.
This fixes rsh connections from a.example.com to example.com.
Reviewed by: ceri (at least the concept)
2005-10-05 04:42:20 +00:00
pjd
c71407b589
Pidfiles should be created with permission preventing users from opening
...
them for reading. When user can open file for reading, he can also
flock(2) it, which can lead to confusions.
Pointed out by: green
2005-09-16 11:24:28 +00:00
pjd
a5fe3401b9
Add a family of functions for reliable pidfiles handling.
...
Idea from: jmg
Discussed on: arch@
2005-08-24 17:21:38 +00:00
kensmith
f97f77429f
Bump the shared library version number of all libraries that have not
...
been bumped since RELENG_5.
Reviewed by: ru
Approved by: re (not needed for commit check but in principle...)
2005-07-22 17:19:05 +00:00
ume
e33ba03345
NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines
...
NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special
for it, now.
2005-05-13 16:31:11 +00:00
trhodes
17bf236ae6
Properly spell default in a comment.
2005-04-22 23:11:57 +00:00
delphij
ecb578572b
Remove duplicated "bytes".
...
Submitted by: Wojciech A. Koszek [dunstan freebsd czest pl]
PR: 79747
2005-04-10 12:15:25 +00:00
trhodes
3effafb90a
Fix grammatical issue.
...
Submitted by: ceri
2005-02-27 22:24:24 +00:00
trhodes
f5e3ae6b91
Use ~/.login_conf when discussing a user's local file.
...
Suggested by: ru
2005-02-26 23:41:04 +00:00
trhodes
6eab363209
Reword previous commit to be a bit more correct and provide more information.
...
Inspiried by: ru
2005-02-25 00:32:41 +00:00
trhodes
5e74dd0d39
Make it more obvious that cap_mkdb(1) is required to rebuild the database.
...
PR: 76981
Submitted by: Lowell Gilbert <freebsd-bugs-local@be-well.ilk.org>
2005-02-23 22:11:59 +00:00
ru
1541af42f1
Expand *n't contractions.
2005-02-13 22:25:33 +00:00
ru
fe3627f1e0
Reflect the reality; only crypt(3) uses /etc/auth.conf
...
for the time being.
2005-01-21 12:07:46 +00:00
ru
ed72feddcb
Sort sections.
2005-01-20 09:17:07 +00:00
ru
5384a04b6a
Scheduled mdoc(7) sweep.
2005-01-11 20:50:51 +00:00
trhodes
769923c308
Various markup and spelling fixes.
...
PR: 75574
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> (original version)
2004-12-29 02:18:24 +00:00
ru
d4138a03c5
Grammar in a comment.
2004-12-18 12:31:12 +00:00
pjd
b897378c21
Backout manual page updates.
...
Requested by: ru
2004-09-26 12:08:31 +00:00
pjd
afbc779ed0
Take the lastest fixes from NetBSD.
...
Obtained from: NetBSD
2004-09-25 14:11:34 +00:00
pjd
5b5cfb3bca
There is no such manual page in FreeBSD.
2004-09-16 18:32:58 +00:00
obrien
f850188f63
Document when this function came into FreeBSD.
2004-08-21 03:31:17 +00:00
roam
42f1d6d32b
Spell FTP correctly - in this case, it is used as the name of the protocol,
...
not the program. Also, bump the document date.
Reminded by: our resident mdoc guard (ru)
2004-08-06 12:56:39 +00:00
roam
6cbbe8f719
Add Giorgos's description of the ftp-chroot login.conf option.
...
Reported by: Bill Moran <wmoran@potentialtech.com>
Submitted by: keramida
MFC after: 2 weeks
2004-08-06 10:43:24 +00:00
ru
2b2d3c7563
Markup fixes.
2004-07-07 20:25:54 +00:00
ru
57ce50860e
Eliminate double whitespace.
2004-07-03 22:30:10 +00:00
ru
01548ace15
Mechanically kill hard sentence breaks.
2004-07-02 23:52:20 +00:00
pjd
4225bf90f0
Humanize_number(3) is a part of libutil.
2004-05-25 20:11:50 +00:00
trhodes
7fc50ba299
You want to include libutil.h, not util.h.
...
Some minor sentence tweaking.
2004-05-25 18:53:54 +00:00
pjd
d207894810
Add humanize_number(3) to libutil for formating numbers into a human
...
readable form.
Obtained from: NetBSD
2004-05-24 22:19:27 +00:00
stefanf
f4d682445c
Don't depend on NULL's expansion being a pointer, cast it before it is passed
...
to variadic functions.
Approved by: das (mentor)
2004-05-18 15:53:58 +00:00
dds
b581d18d3f
Fix and clarify unparsable sentence.
...
MFC after: 2 weeks
2004-05-11 11:10:09 +00:00
dds
95de53b08b
Bring the description for login_getclassbyname in sync with the function's
...
arguments. The function has as a second argument a struct passwd * pointer,
not a directory name.
MFC after: 2 weeks
2004-05-11 11:05:26 +00:00
kientzle
48517ca7da
Back out the "clean_environment()" function from libutil.
...
Further contemplation has convinced me that this was
not going to really solve the problem of environment-poisoning
without raising serious administrative headaches. There
must be a better way...
2004-02-29 22:13:28 +00:00
kientzle
7aa85c4e5f
Add the clean_environment call to libutil.h also.
...
MFC after: 2 weeks
2004-02-26 22:44:11 +00:00
kientzle
8b8fb9aae5
Add a clean_environment call to libutil.
...
This function removes all environment variables except
the ones listed on a "whitelist."
The function accepts two whitelist arguments.
If the first is NULL, a built-in default list will be
used. This allows callers to get a variety of behaviors:
* Default screening: provide NULL for both lists
* Custom screening: provide a custom list for the first argument
* Modified default screening: provide NULL for first arg,
list of additional variables to preserve in the second arg
Idea from: Jacques Vidrine
MFC after: 2 weeks
2004-02-26 22:41:47 +00:00
rwatson
ba0d21ac7c
Bump the major version on libtuil. libutil now relies on the mac_*
...
symbols exported by newer versions of libc, and so we want applications
depending on the newer library code to be required to link against the
newer libc.
Discussed with: scottl, kris, imp
2003-11-12 21:56:07 +00:00
tjr
f2e37a2394
Remove __NETBSD_SYSCALLS.
2003-10-29 10:55:56 +00:00
peter
79a9b01a78
(mostly) Clean up some const warnings here. The code takes some liberties
...
because it is the originator of various const strings and knows that they
came from malloc.
2003-10-26 03:51:47 +00:00
markm
3f45792057
ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.
2003-10-18 10:04:16 +00:00
markm
4d1565cf18
Remove a GCC specifig CFLAG. We should be using WARNS=? for this.
...
WARNS=? is not added here at this point, because I've not tested
it on enough platforms, and I don't want to break builds.
2003-10-18 09:58:39 +00:00
ru
1edcd1b018
mdoc(7): Properly mark C headers.
2003-09-10 19:24:35 +00:00
obrien
372364ee0f
style.Makefile(5)
2003-08-18 15:25:39 +00:00
gordon
5901302929
Stage 3 of dynamic root support. Make all the libraries needed to run
...
binaries in /bin and /sbin installed in /lib. Only the versioned files
reside in /lib, the .so symlink continues to live /usr/lib so the
toolchain doesn't need to be modified.
2003-08-17 08:28:46 +00:00
markm
924232818d
Tidy up. Sort headers.
2003-06-14 18:42:37 +00:00
murray
d7153c6134
Backout last commit. It is redundant in -CURRENT.
...
Pointed out by: David Schultz
2003-05-05 06:25:03 +00:00
murray
292bedae8d
Note that the idletime setting is not enforced.
...
PR: docs/40952
MFC After: 3 days
2003-05-04 21:35:41 +00:00
murray
24d926fd08
Document the login-backoff and login-retries capabilities.
...
PR: docs/51397
MFC After: 3 days
2003-05-04 06:43:24 +00:00
trhodes
10e8cd48a8
Add vmemoryuse to the list.
...
PR: 50796
Submitted by: Dmitry Sivachenko <mitya@cavia.pp.ru>
2003-04-26 15:15:05 +00:00
des
dcecf33e14
Brucify.
2003-04-10 10:26:18 +00:00
des
f514349f09
Correctly detect the case where a password entry was changed while we were
...
preparing to edit it.
PR: bin/50563
2003-04-09 18:20:51 +00:00
des
12196b5a56
Apply the correct fix for bin/50679: don't mess around with process groups
...
or the tty, just block selected signals in the parent like system(3) does.
Many thanks to bde for his assistance in finding the correct solution.
PR: bin/50679
2003-04-09 16:39:47 +00:00
des
1d2413048f
Band-aid for the "^C kills the editor" problem. I haven't yet found the
...
proper way to fix this. The way this works is to prepend "exec " to
the editor command to eliminate the "shell in the middle" which prevents
us from properly reawakening the editor after a SIGTSTP.
PR: bin/50679
2003-04-08 18:04:30 +00:00
charnier
f0ffe0ef9f
The .Fn function
2003-03-24 16:02:05 +00:00
das
f1bbc8cde6
Make pw_edit() use /bin/sh to interpret the EDITOR environment
...
variable.
PR: 48748
Reviewed by: mike (mentor)
2003-03-17 02:12:55 +00:00