367457 |
07-Nov-2020 |
dim |
MFC r344855 (by jhb):
Drop "All rights reserved" from my copyright statements.
Reviewed by: rgrimes Differential Revision: https://reviews.freebsd.org/D19485 |
357789 |
12-Feb-2020 |
kevans |
MFC r357560, r357707: login.conf(5) mail capability
r357560: login.conf(5): split MAIL env var out into a "mail" capability
This allows it to be easily suppressed in, e.g., the "daemon" class where it will not be properly expanded.
This is a part of D21481.
Submitted by: Andrew Gierth <andrew_tao173.riddles.org.uk>
r357707: login.conf(5): update commented-out standard, too
MAIL now has a mail capability, instead, as of r357560. |
356461 |
07-Jan-2020 |
ian |
MFC r336746, r336779
r336746: Make pw_scan(3) more compatible with getpwent(3) et. al. when processing data from /etc/passwd rather than /etc/master.passwd.
The libc getpwent(3) and related functions automatically read master.passwd when run by root, or passwd when run by a non-root user. When run by non- root, getpwent() copes with the missing data by setting the corresponding fields in the passwd struct to known values (zeroes for numbers, or a pointer to an empty string for literals). When libutil's pw_scan(3) was used to parse a line without the root-accessible data, it was leaving garbage in the corresponding fields.
These changes rename the static pw_init() function used by getpwent() and friends to __pw_initpwd(), and move it into pw_scan.c so that common init code can be shared between libc and libutil. pw_scan(3) now calls __pw_initpwd() before __pw_scan(), just like the getpwent() family does, so that reading an arbitrary passwd file in either format and parsing it with pw_scan(3) returns the same results as getpwent(3) would.
This also adds a new pw_initpwd(3) function to libutil, so that code which creates passwd structs from scratch in some manner that doesn't involve pw_scan() can initialize the struct to the values expected by lots of existing code, which doesn't expect to encounter NULL pointers or garbage values in some fields.
r336779: Stop exporting __pw_scan and __pw_initpwd as freebsd-private libc functions for use in libutil, and instead compile the small amount of common code directly into libutil with a .PATH reachover. |
354034 |
24-Oct-2019 |
jhb |
MFC 350179: expand_number(3) parses suffixes, not prefixes.
While here, tidy the opening sentence a bit. |
351730 |
03-Sep-2019 |
sef |
MFC r343881, r343882
r339008 broke repquota for UFS. This rectifies that.
PR: 233849 |
343040 |
15-Jan-2019 |
delphij |
MFC r342640: Ensure buffer is nul-terminated. |
339008 |
29-Sep-2018 |
sef |
MFC r336017,r338799
r336017 This exposes ZFS user and group quotas via the normal quatactl(2) mechanism. (Read-only at this point, however.) In particular, this is to allow rpc.rquotad query quotas for NFS mounts, allowing users to see their quotas on the hosts using the datasets.
The changes specifically:
* Add new RPC entry points for querying quotas. * Changes the library routines to allow non-UFS quotas. * Changes rquotad to check for quotas on mounted filesystems, rather than being limited to entries in /etc/fstab * Lastly, adds a VFS entry-point for ZFS to query quotas.
Note that this makes one unavoidable behavioural change: if quotas are enabled, then they can be queried, as opposed to the current method of checking for quotas being specified in fstab. (With ZFS, if there are user or group quotas, they're used, always.)
r338799 Author: kib
Fix ZFS VFS op quotactl to follow busy protocol.
Approved by: mav Sponsored by: iXsystems, inc |
336211 |
11-Jul-2018 |
asomers |
MFC r334547:
pty.3: Add a HISTORY section
These functions were first added in 4.3 BSD-Reno, according to http://unix.superglobalmegacorp.com/ and the CSRG svn repository.
Reviewed by: bcr, bjk Differential Revision: https://reviews.freebsd.org/D15652 |
335964 |
04-Jul-2018 |
emaste |
MFC r306098 (br): Use kqueue(2) instead of select(2).
This helps to ensure we will not lose SIGINT sent by parent to child.
PR: 212562, 228492 |
335890 |
03-Jul-2018 |
robak |
MFC r327317:
humanize_number(3): fix math edge case in rounding large numbers
Fix for remainder overflow, when in rare cases adding remainder to divider exceeded 1 and turned the total to 1000 in final formatting, taking up the space for the unit character.
The fix continues the division of the original number if the above case happens -- added the appropriate check to the for loop performing the division. This lowers the value shown, to make it fit into the buffer space provided (1.0M for 4+1 character buffer, as used by ls).
Add test case for the reported bug and extend test program to support providing buffer length (ls -lh uses 5, tests hard-coded 4).
PR: 224498 |
331722 |
29-Mar-2018 |
eadler |
Revert r330897:
This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code.
Revert with prejudice.
This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes.
Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes.
Requested by: gjb (re) |
331518 |
25-Mar-2018 |
sevan |
MFC r322665
Add caveat to kinfo_getvmmap(3) explaining high CPU utilisation. Based on kib's reply on https://lists.freebsd.org/pipermail/freebsd-hackers/2016-July/049710.html |
330897 |
14-Mar-2018 |
eadler |
Partial merge of the SPDX changes
These changes are incomplete but are making it difficult to determine what other changes can/should be merged.
No objections from: pfg |
325844 |
15-Nov-2017 |
bapt |
MFC r325716:
Fix some nroff style issue |
318121 |
09-May-2017 |
pfg |
MFC r317265: lib: initial use of reallocarray(3).
Make some use of reallocarray, attempting to limit it to cases where the parameters are unsigned and there is some theoretical chance of overflow. |
317386 |
24-Apr-2017 |
brooks |
MFC r316766:
Correct an out of bounds read with HN_AUTOSCALE and very large numbers.
The maximum scale is 6 (K, M, G, T, P, E) (B is 0).
Overly large explict scales were checked correctly, but for sufficently large numbers HN_AUTOSCALE would get to 7 resulting in an out of bounds read.
Found with humanize_number_test and CHERI bounds checking.
Reviewed by: emaste Obtained from: CheriBSD Sponsored by: DARPA, AFRL |
316387 |
02-Apr-2017 |
asomers |
MFC r315039
Increase WARNS for libutil tests
ATF tests have a default WARNS of 0, unlike other usermode programs.
Reviewed by: ngie, julian MFC after: 3 weeks Sponsored by: Spectra Logic Corporation Differential Revision: https://reviews.freebsd.org/D9933 |
316075 |
28-Mar-2017 |
ngie |
MFC r313436,r313437,r313438,r314587,r315687:
r313436:
Clarify #includes for hexdump(3) vs sbuf_hexdump(9)
hexdump(3) only requires libutil.h, whereas sbuf_hexdump(9) requires sys/types.h (for ssize_t) and sys/sbuf.h
r313437:
Create link from hexdump(3) to sbuf_hexdump(9) as the manpage describes sbuf_hexdump(9)'s behavior
r313438:
Clean up trailing and leading whitespace for variables to make it consistent with the rest of the file and style.Makefile(9) a bit more
r314587:
Correct MLINKS for sbuf_hexdump(9)
sbuf_hexdump(9) should be linked to sbuf(9), not hexdump(3). Another review will be posted to deduplicate the sbuf_hexdump reference in in hexdump(3) or at the very least make the information less duplicative.
r315687:
Document sbuf_hexdump(9) in just sbuf(9)
- Remove duplicate references to sbuf_hexdump(9) from hexdump(3). sbuf_hexdump(9) already pointed back to hexdump(3) for implementation details. - Refer to sbuf_hexdump(9) instead of sbuf(9) for completeness |
314819 |
07-Mar-2017 |
ngie |
MFC r313438:
Clean up trailing and leading whitespace for variables to make it consistent with the rest of the file and style.Makefile(9) a bit more |
313538 |
10-Feb-2017 |
ngie |
MFC r312452-r312512:
r312452-r312512:
- Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones
This simplifies pathing in make/displayed output
- Use .CURDIR:H instead of .CURDIR to simplify pathing in output, etc |
312031 |
13-Jan-2017 |
ngie |
MFC r311714:
lib/libutil/kinfo_*: style cleanup
- Use nitems(mib) instead of hardcoding mib's length - Sort sys/ #includes |
310479 |
23-Dec-2016 |
des |
MFH (r309269): use malloc()ed buffers instead of stack buffers |
310176 |
16-Dec-2016 |
asomers |
MFC r308806
Speed up pw operations that edit /etc/group or /etc/passwd
r285050 fixed a bug in pw that could lead to /etc/passwd or /etc/group corruption on power loss. However, it fixed it by opening those files with O_SYNC, which is very slow, especially on ZFS. This change replaces O_SYNC with appropriately placed fsync()s instead, which is much faster. Using a ZFS tmpdir, the time to run pw's kyua tests drops from 245s to 35s. |
302408 |
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
300152 |
18-May-2016 |
pfg |
libutil: minor spelling fixes.
|
299581 |
13-May-2016 |
truckman |
Use strlcpy() instead of strncpy() to ensure that qf->fsname is NUL terminated. Don't bother checking for truncation since the subsequent stat() call should detect that and fail.
Reported by: Coverity CID: 1018189 MFC after: 1 week
|
299094 |
04-May-2016 |
ngie |
Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed after r298107
Summary of changes:
- Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup)
Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info.
MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division
|
298876 |
01-May-2016 |
ed |
Remove useless calls to basename().
There are a couple of places in the source three where we call basename() on constant strings. This is bad, because the prototype standardized by POSIX allows the implementation to use its argument as a storage buffer.
This change eliminates some of these unportable calls to basename() in cases where it was only added for cosmetical reasons, namely to trim argv[0]. There's nothing wrong with setting argv[0] to the full path.
Reviewed by: jilles Differential Revision: https://reviews.freebsd.org/D6093
|
298107 |
16-Apr-2016 |
gjb |
Merge the projects/release-pkg branch to head.
This allows packaging the base system with pkg(8), including but not limited to providing the ability to provide upstream binary update possibilities for non-tier-1 architectures.
This merge is a requirement of the 11.0-RELEASE, and as such, thank you to everyone that has tested the project branch.
Documentation in build(7) etc. is still somewhat sparse, but updates to those parts will follow.
Sponsored by: The FreeBSD Foundation
|
298096 |
16-Apr-2016 |
gjb |
Prune bogus svn:mergeinfo from directores on which it should not ever be present.
Sponsored by: The FreeBSD Foundation
|
296723 |
12-Mar-2016 |
kib |
Fix handling of umtxp resource limit in sh(1)/ulimit(1), limits(1), add login.conf(5) support.
Reviewed by: jilles Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D5610
|
296587 |
09-Mar-2016 |
bdrewery |
DIRDEPS_BUILD: Connect MK_TESTS.
Sponsored by: EMC / Isilon Storage Division
|
291307 |
25-Nov-2015 |
bdrewery |
META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.
This both avoids some dependencies on xinstall.host and allows bootstrapping on older releases to work due to lack of at least 'install -l' support.
Sponsored by: EMC / Isilon Storage Division
|
290494 |
07-Nov-2015 |
bapt |
Improve collation string and locales support
Merge collation support from Illumos and DragonflyBSD.
Locales are now generated with the new localedef(1) tool from CLDR POSIX files. The generated files are now identified as "BSD 1.0" format.
The libc now only read "BSD 1.0" locales definitions, all other version will be set to "C" The localedef(1) tool has been imported from Illumos and modified to use tree(3) instead of the CDDL avl(3) A set of tool created by edwin@ and extended by marino@ for dragonfly has been added to be able to generate locales and the Makefiles from the vanilla CLDR unicode databases + a universal UTF-8 charmap (by marino@) Update the locales to unicode v27 Given our regex(3) does not support multibyte (yet) it has been forced to always use locale C Remove now unused colldef(1) and mklocale(1) Finish implementing the numeric BSD extension for ctypes The number of supported locales has grown from 175 to 250 locales. Among the new locales: 6 Arabic locales (AE EG JO MA QA SA), Different variations of spanish locales. Added new 3 components locales for mn_Cyrl_MN, sr_Cyrl_RS sr_Latn_RS, zh_Hans_CN, zh_Hant_HK and zh_Hant_TW. Some aliases has been for 2 components version when possible.
Thanks: Garrett D'Amore (Illumos) who made sure all his work was done under BSD license!, Edwin Groothuis (edwin@) for the work he made on tools to be able to generate locales definition usable in freebsd sources out of vanilla CLDR definitions, John Marino (DragonflyBSD) who first merge the Illumos work into Dragonfly and spent hours tracking down bugs.
|
290440 |
06-Nov-2015 |
smh |
Correct posix_openpt reference in pty(3)
MFC after: 1 week Sponsored by: Multiplay
|
290102 |
28-Oct-2015 |
bapt |
Merge mpsutil(8) branch
mpsutil(8)/mprutil(8) are new utilities for managing LSI Fusion-MPT 2/3 controllers (mps(4) and mpr(4))
For now only informational commands have been implemented.
This utility has been written by scottl@ [1] and polished by myself[2]
Submitted by: scottl Discussed with: scottl Relnotes: yes Sponsored by: Netflix [1] Sponsored by: Gandi.net [2]
|
289172 |
12-Oct-2015 |
ngie |
Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and netbsd-tests.test.mk (r289151)
- Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity
MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
|
288944 |
06-Oct-2015 |
cem |
Fix core corruption caused by race in note_procstat_vmmap
This fix is spiritually similar to r287442 and was discovered thanks to the KASSERT added in that revision.
NT_PROCSTAT_VMMAP output length, when packing kinfo structs, is tied to the length of filenames corresponding to vnodes in the process' vm map via vn_fullpath. As vnodes may move during coredump, this is racy.
We do not remove the race, only prevent it from causing coredump corruption.
- Add a sysctl, kern.coredump_pack_vmmapinfo, to allow users to disable kinfo packing for PROCSTAT_VMMAP notes. This avoids VMMAP corruption and truncation, even if names change, at the cost of up to PATH_MAX bytes per mapped object. The new sysctl is documented in core.5.
- Fix note_procstat_vmmap to self-limit in the second pass. This addresses corruption, at the cost of sometimes producing a truncated result.
- Fix PROCSTAT_VMMAP consumers libutil (and libprocstat, via copy-paste) to grok the new zero padding.
Reported by: pho (https://people.freebsd.org/~pho/stress/log/datamove4-2.txt) Relnotes: yes Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3824
|
288943 |
06-Oct-2015 |
dim |
Upgrade our copies of clang, llvm, lldb, compiler-rt and libc++ to 3.7.0 release.
Please note that from 3.5.0 onwards, clang, llvm and lldb require C++11 support to build; see UPDATING for more information.
Release notes for llvm and clang can be found here: <http://llvm.org/releases/3.7.0/docs/ReleaseNotes.html> <http://llvm.org/releases/3.7.0/tools/clang/docs/ReleaseNotes.html>
Thanks to Ed Maste, Andrew Turner and Antoine Brodin for their help.
Exp-run: antoine Relnotes: yes
|
287442 |
03-Sep-2015 |
cem |
Detect badly behaved coredump note helpers
Coredump notes depend on being able to invoke dump routines twice; once in a dry-run mode to get the size of the note, and another to actually emit the note to the corefile.
When a note helper emits a different length section the second time around than the length it requested the first time, the kernel produces a corrupt coredump.
NT_PROCSTAT_FILES output length, when packing kinfo structs, is tied to the length of filenames corresponding to vnodes in the process' fd table via vn_fullpath. As vnodes may move around during dump, this is racy.
So:
- Detect badly behaved notes in putnote() and pad underfilled notes.
- Add a fail point, debug.fail_point.fill_kinfo_vnode__random_path to exercise the NT_PROCSTAT_FILES corruption. It simply picks random lengths to expand or truncate paths to in fo_fill_kinfo_vnode().
- Add a sysctl, kern.coredump_pack_fileinfo, to allow users to disable kinfo packing for PROCSTAT_FILES notes. This should avoid both FILES note corruption and truncation, even if filenames change, at the cost of about 1 kiB in padding bloat per open fd. Document the new sysctl in core.5.
- Fix note_procstat_files to self-limit in the 2nd pass. Since sometimes this will result in a short write, pad up to our advertised size. This addresses note corruption, at the risk of sometimes truncating the last several fd info entries.
- Fix NT_PROCSTAT_FILES consumers libutil and libprocstat to grok the zero padding.
With suggestions from: bjk, jhb, kib, wblock Approved by: markj (mentor) Relnotes: yes Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3548
|
286863 |
17-Aug-2015 |
emaste |
On arm64 disable three tests that hang or panic
Each issue has a PR open to track. This workaround allows us to run the tests to investigate the failures and avoid any new regressions.
PR: 202304, 202305, 202307 Reviewed by: ngie Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3378
|
285059 |
02-Jul-2015 |
garga |
Bump .Dd due to changes made in r285050 and r285053
Spotted by: loos Approved by: loos
|
285053 |
02-Jul-2015 |
garga |
Improve pw_lock.3 text changed in r285050
Suggested by: wblock Approved by: gnn
|
285050 |
02-Jul-2015 |
garga |
When passwd or group information is changed (by pw, vipw, chpass, ...) temporary file is created and then a rename() call move it to official file. This operation didn't have any check to make sure data was written to disk and if a power cycle happens system could end up with a 0 length passwd or group database.
There is a pfSense bug with more infor about it:
https://redmine.pfsense.org/issues/4523
The following changes were made to protect passwd and group operations:
* lib/libutil/gr_util.c: - Replace mkstemp() by mkostemp() with O_SYNC flag to create temp file - After rename(), fsync() call on directory for faster result
* lib/libutil/pw_util.c - Replace mkstemp() by mkostemp() with O_SYNC flag to create temp file
* usr.sbin/pwd_mkdb/pwd_mkdb.c - Added O_SYNC flag on dbopen() calls - After rename(), fsync() call on directory for faster result
* lib/libutil/pw_util.3 - pw_lock() returns a file descriptor to master password file on success
Differential Revision: https://reviews.freebsd.org/D2978 Approved by: bapt Sponsored by: Netgate
|
284481 |
16-Jun-2015 |
sjg |
new depends
|
284421 |
15-Jun-2015 |
bapt |
Revert r284417 it is not necessary anymore
|
284417 |
15-Jun-2015 |
bapt |
Enforce overwritting SHLIBDIR
Since METAMODE has been added, sys.mk loads bsd.mkopt.mk which ends load loading bsd.own.mk which then defines SHLIBDIR before all the Makefile.inc everywhere.
This makes /lib being populated again.
Reported by: many
|
284345 |
13-Jun-2015 |
sjg |
Add META_MODE support.
Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree.
Still need to add real targets under targets/ to build packages.
Differential Revision: D2796 Reviewed by: brooks imp
|
284225 |
10-Jun-2015 |
brooks |
List kinfo_getfile.c only once.
MFC after: 3 days Sponsored by: DARPA, AFRL
|
284192 |
09-Jun-2015 |
ken |
Add support for reading MAM attributes to camcontrol(8) and libcam(3).
MAM is Medium Auxiliary Memory and is most commonly found as flash chips on tapes.
This includes support for reading attributes and decoding most known attributes, but does not yet include support for writing attributes or reporting attributes in XML format.
libsbuf/Makefile: Add subr_prf.c for the new sbuf_hexdump() function. This function is essentially the same function.
libsbuf/Symbol.map: Add a new shared library minor version, and include the sbuf_hexdump() function.
libsbuf/Version.def: Add version 1.4 of the libsbuf library.
libutil/hexdump.3: Document sbuf_hexdump() alongside hexdump(3), since it is essentially the same function.
camcontrol/Makefile: Add attrib.c.
camcontrol/attrib.c: Implementation of READ ATTRIBUTE support for camcontrol(8).
camcontrol/camcontrol.8: Document the new 'camcontrol attrib' subcommand.
camcontrol/camcontrol.c: Add the new 'camcontrol attrib' subcommand.
camcontrol/camcontrol.h: Add a function prototype for scsiattrib().
share/man/man9/sbuf.9: Document the existence of sbuf_hexdump() and point users to the hexdump(3) man page for more details.
sys/cam/scsi/scsi_all.c: Add a table of known attributes, text descriptions and handler functions.
Add a new scsi_attrib_sbuf() function along with a number of other related functions that help decode attributes.
scsi_attrib_ascii_sbuf() decodes ASCII format attributes.
scsi_attrib_int_sbuf() decodes binary format attributes, and will pass them off to scsi_attrib_hexdump_sbuf() if they're bigger than 8 bytes.
scsi_attrib_vendser_sbuf() decodes the vendor and drive serial number attribute.
scsi_attrib_volcoh_sbuf() decodes the Volume Coherency Information attribute that LTFS writes out.
sys/cam/scsi/scsi_all.h: Add a number of attribute-related structure definitions and other defines.
Add function prototypes for all of the functions added in scsi_all.c.
sys/kern/subr_prf.c: Add a new function, sbuf_hexdump(). This is the same as the existing hexdump(9) function, except that it puts the result in an sbuf.
This also changes subr_prf.c so that it can be compiled in userland for includsion in libsbuf.
We should work to change this so that the kernel hexdump implementation is a wrapper around sbuf_hexdump() with a statically allocated sbuf with a drain. That will require a drain function that goes to the kernel printf() buffer that can take a non-NUL terminated string as input. That is because an sbuf isn't NUL-terminated until it is finished, and we don't want to finish it while we're still using it.
We should also work to consolidate the userland hexdump and kernel hexdump implemenatations, which are currently separate. This would also mean making applications that currently link in libutil link in libsbuf.
sys/sys/sbuf.h: Add the prototype for sbuf_hexdump(), and add another copy of the hexdump flag values if they aren't already defined.
Ideally the flags should be defined in one place but the implemenation makes it difficult to do properly. (See above.)
Sponsored by: Spectra Logic Corporation MFC after: 1 week
|
283984 |
04-Jun-2015 |
bapt |
revert r283969,283970 not needed anymore after r283981
|
283970 |
03-Jun-2015 |
bapt |
Capitalize the list of accepted variables
Suggested by: wblock
|
283969 |
03-Jun-2015 |
bapt |
Add a pw_mkdb2(3) function which does the same thing as pw_mkdb(3) except it takes a new argument allowing to specify the endianness of the database to generate
Differential Revision: https://reviews.freebsd.org/D2730 Reviewed by: ian
|
283964 |
03-Jun-2015 |
bapt |
Fix typo
|
283624 |
27-May-2015 |
jhb |
Export a list of VM objects in the system via a sysctl. The list can be examined via 'vmstat -o'. It can be used to determine which files are using physical pages of memory and how much each is using.
Differential Revision: https://reviews.freebsd.org/D2277 Reviewed by: alc, kib MFC after: 2 weeks Sponsored by: Norse Corp, Inc. (forward porting to HEAD/10)
|
283622 |
27-May-2015 |
jhb |
Add <sys/user.h> to the SYNOPSIS of the kinfo_get*() functions since these functions all return types that are defined in that header.
MFC after: 1 week
|
280031 |
15-Mar-2015 |
dim |
Upgrade our copy of clang, llvm and lldb to 3.6.0 release.
Please note that from 3.5.0 onwards, clang/llvm/lldb require C++11 support to build; see UPDATING for more information.
Release notes for llvm and clang can be found here: <http://llvm.org/releases/3.6.0/docs/ReleaseNotes.html> <http://llvm.org/releases/3.6.0/tools/clang/docs/ReleaseNotes.html>
Thanks to Ed Maste for the lldb part of this upgrade.
Exp-run: antoine
|
277669 |
25-Jan-2015 |
markj |
gr_equal(): Fix a crash that could occur if the first group's member list was longer than the second's. There is no need to compute and compare the member list lengths in a separate pass, since we now just return false when comparing member names if the list lengths are not equal.
MFC after: 2 weeks
|
276479 |
31-Dec-2014 |
dim |
Upgrade our copy of clang, llvm and lldb to 3.5.0 release.
Please note that this version now requires C++11 support to build; see UPDATING for more information.
Release notes for llvm and clang can be found here: <http://llvm.org/releases/3.5.0/docs/ReleaseNotes.html> <http://llvm.org/releases/3.5.0/tools/clang/docs/ReleaseNotes.html>
Thanks to Ed Maste, Roman Divacky, Andrew Turner, Justin Hibbits and Antoine Brodin for their invaluable help with this import.
Approved by: portmgr (antoine) MFC after: 1 month
|
276294 |
27-Dec-2014 |
joel |
mdoc: improvements to SEE ALSO.
|
275024 |
25-Nov-2014 |
bapt |
Convert libraries to use LIBADD While here reduce a bit overlinking
|
273837 |
29-Oct-2014 |
dim |
Fix a clang 3.5 warning about abs(3) being given an argument of type quad_t in setusercontext(). While here, sanitize the clamping of the priority value, and use the correct type for the return value of login_getcapnum().
Reviewed by: kib MFC after: 3 days
|
273791 |
28-Oct-2014 |
bapt |
Fix renaming a group via the gr_copy function
Add a regression test to pw(8) because the bug was discovered via using: pw groupmod
PR: 187189 Reported by: mcdouga9@egr.msu.edu Tested by: mcdouga9@egr.msu.edu Patch by: Marc de la Gueronniere
|
269904 |
13-Aug-2014 |
ngie |
Integrate lib/libutil into the build/kyua
Remove the .t wrappers
Rename all of the TAP test applications from test-<test> to <test>_test to match the convention described in the TestSuite wiki page
humanize_number_test.c:
- Fix -Wformat warnings with counter variables - Fix minor style(9) issues: -- Header sorting -- Variable declaration alignment/sorting in main(..) -- Fit the lines in <80 columns - Fix an off by one index error in the testcase output [*] - Remove unnecessary `extern char * optarg;` (this is already provided by unistd.h)
Phabric: D555 Approved by: jmmv (mentor) MFC after: 2 weeks Obtained from: EMC / Isilon Storage Division [*] Submitted by: Casey Peel <cpeel@isilon.com> [*] Sponsored by: EMC / Isilon Storage Division
|
269015 |
23-Jul-2014 |
pfg |
fparseln(3): Update from NetBSD sources.
-fix a condition so that fparseln() doesn't report spurious empty lines eg after 2 comment lines, or on EOF after a single comment line -no escape character means no escaped characters
modify the previous fix so that no pointless realloc()s are done in the case of multiple empty continuation lines, and comment the code to make the logics obvious
fparseln is now part of libc in NetBSD so this changes the previous revision numbering.
Obtained from: NetBSD (CVS Rev. 1.6-1.7) MFC after: 2 weeks
|
267803 |
23-Jun-2014 |
joel |
mdoc: remove superfluous paragraph macros.
|
267773 |
23-Jun-2014 |
bapt |
use .Mt to mark up email addresses consistently (part3)
PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de>
|
265420 |
06-May-2014 |
imp |
Use src.opts.mk in preference to bsd.own.mk except where we need stuff from the latter.
|
265276 |
03-May-2014 |
markj |
Fix a typo.
MFC after: 3 days
|
261824 |
13-Feb-2014 |
eadler |
libutil/pw_util.3: Fix two prototypes.
Reported by: marino Obtained from: DragonFlyBSD (e82b5d3dfa969bfcda5ffadceccc682b6bdcd077) MFC After: 3 days
|
258026 |
12-Nov-2013 |
eadler |
Indicate that expand_number is case-insensitive.
Reviewed by: -scsi
|
257205 |
27-Oct-2013 |
eadler |
Mention in login.conf.5 which fields may be infinite and how to specifify infinity. The number of ways to indicate this confuses people.
PR: docs/100196 Reported by: "Dr. Markus Waldeck" <waldeck@gmx.de> Reported by: Jamie Landeg Jones <jamie.landeg.jones@gmail.com>
|
257204 |
27-Oct-2013 |
eadler |
All man pages refer to FreeBSD so there is no need to mention "In .Fx"
|
256850 |
21-Oct-2013 |
kib |
Add a resource limit for the total number of kqueues available to the user. Kqueue now saves the ucred of the allocating thread, to correctly decrement the counter on close.
Under some specific and not real-world use scenario for kqueue, it is possible for the kqueues to consume memory proportional to the square of the number of the filedescriptors available to the process. Limit allows administrator to prevent the abuse.
This is kernel-mode side of the change, with the user-mode enabling commit following.
Reported and tested by: pho Discussed with: jmg Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
|
256130 |
07-Oct-2013 |
jmg |
don't assert on bad args, instead return an error..
Since so many programs don't check return value, always NUL terminate the buf...
fix rounding when using base 1024 (the bug that started it all)...
add a set of test cases so we can make sure that things don't break in the future...
Thanks to Clifton Royston for testing and the test program...
Approved by: re (hrs, glebius) MFC after: 1 week
|
255069 |
30-Aug-2013 |
pluknet |
The round of expand_number() cleanups. o Fix range error checking to detect overflow when uint64_t < uintmax_t. o Remove a non-functional check for no valid digits as pointed out by Bruce. o Remove a rather pointless comment describing what the function does. o Clean up a bunch of style bugs.
Brucified by: bde
|
255007 |
28-Aug-2013 |
jilles |
libutil: Use O_CLOEXEC for internal file descriptors from open().
|
254621 |
21-Aug-2013 |
pluknet |
Reset errno before strtoumax() call to properly detect ERANGE. Restore saved errno if strtoumax() call is successful.
Reported by: ache Reviewed by: jilles MFC after: 1 week
|
254600 |
21-Aug-2013 |
pluknet |
Check strtoumax(3) for ERANGE in case of non-prefixed string.
OK'd by: silence on current@ MFC after: 1 week
|
252376 |
29-Jun-2013 |
kientzle |
Fix -Wunsequenced warning
Submitted by: dt71@gmx.com
|
248281 |
14-Mar-2013 |
pjd |
When pidptr was passed as NULL to pidfile_open(3), we were returning EAGAIN/EWOULDBLOCK when another daemon was running and had the pidfile open. We should return EEXIST in that case, fix it.
Reported by: Dirk Engling <erdgeist@erdgeist.org> Reviewed by: jhb, Dirk Engling <erdgeist@erdgeist.org> MFC after: 1 week
|
248102 |
09-Mar-2013 |
db |
commit correct tested fix for gr_util.c
Approved by: theraven
|
247919 |
07-Mar-2013 |
db |
Cleanup gr_add() so it does not leak mem This is part of ongoing work on sbin/pw
M libutil.h M gr_util.c
Approved by: theraven
|
247534 |
01-Mar-2013 |
ru |
Fixed documented prototype of kinfo_getproc(3).
|
245390 |
13-Jan-2013 |
mjg |
libutil: fix typo in comment for gr_fini.
Submitted by: Christoph Mallon <christoph.mallon gmx.de>
|
245387 |
13-Jan-2013 |
mjg |
libutil: utilize strsep instead of strcat in a loop in gr_make
Submitted by: Christoph Mallon <christoph.mallon gmx.de>
|
245386 |
13-Jan-2013 |
mjg |
libutil: move group_line_format into the scop of its only user.
Submitted by: Christoph Mallon <christoph.mallon gmx.de>
|
245385 |
13-Jan-2013 |
mjg |
libutil: eliminate 'found' variable in gr_equal
Submitted by: Christoph Mallon <christoph.mallon gmx.de>
|
244780 |
28-Dec-2012 |
bapt |
Simplify pointing dst after the end of all the gr_mem pointers in newgr
Submitted by: pjd Reviewed by: db
|
244779 |
28-Dec-2012 |
bapt |
errno = ENOMEM was supposed to be removed not return (NULL);
Submitted by: gcooper
|
244778 |
28-Dec-2012 |
bapt |
malloc() sets errno to ENOMEM already.
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
|
244777 |
28-Dec-2012 |
bapt |
Do not leave parts of the new group uninitialized in gr_dup().
Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Reported by: pjd
|
244747 |
27-Dec-2012 |
bapt |
avoid arithmetic on uintptr_t
Submitted by: pjd Reviewed by: jilles
|
244745 |
27-Dec-2012 |
bapt |
cast to uintptr_t to properly calculate offset
Reported by: mdf Submitted by: db
|
244744 |
27-Dec-2012 |
bapt |
Add O_CLOEXEC to flopen
Requested by: jilles
|
244742 |
27-Dec-2012 |
bapt |
gr_dup: simplify duplication of group
Submitted by: db
|
244739 |
27-Dec-2012 |
bapt |
- Clean up previous gr_add use malloc instead of calloc - Fix tinderbox error
Submitted by: db
|
244736 |
27-Dec-2012 |
bapt |
New gr_add function to provide a clean and safe method to append a new member into an existing group.
Submitted by: db
|
244735 |
27-Dec-2012 |
bapt |
Use flopen(3) instead of open(2) + flock(2)
|
243334 |
20-Nov-2012 |
bapt |
only rename(2) after chmod(2) has succeed report error if chmod(2) fails
Reported by: jh
|
243328 |
20-Nov-2012 |
bapt |
change mode the group file to 0644 after a successfull rename(2)
|
242503 |
03-Nov-2012 |
bapt |
Fix typo
|
242398 |
31-Oct-2012 |
des |
Correct attribution.
|
242383 |
30-Oct-2012 |
joel |
Minor mdoc and language fixes.
|
242382 |
30-Oct-2012 |
bapt |
Removed unnecessary bits in the header that shows where I stole the template
|
242381 |
30-Oct-2012 |
bapt |
Document the pw_util(3) functions
Reviewed by: des, gjb
|
242324 |
29-Oct-2012 |
bapt |
backout r242319, racy and not done in the right place
Reported by: Garrett Cooper <yanegomi@gmail.com>
|
242319 |
29-Oct-2012 |
bapt |
make pw_init and gr_init fail if the specified master password or group file is a directory.
MFC after: 1 month
|
240391 |
12-Sep-2012 |
bapt |
Fix IEC / SI binary prefixes (Ki, Mi, Gi, etc) production by humanize_number(3)
PR: bin/171487 Submitted by: matthew MFC after: 1 week
|
237269 |
19-Jun-2012 |
des |
Switch the default password hash from md5 to sha512.
MFC after: 1 week
|
237268 |
19-Jun-2012 |
bapt |
Revert user comparison back to user names as some user can share uids (root/toor for example)
get the username information from old_pw structures to still allow renaming of a user.
Reported by: Claude Buisson <clbuisson@orange.fr> Approved by: des (mentor) MFC after: 3 weeks
|
236965 |
12-Jun-2012 |
des |
Finally nuke auth.conf, nine years after it was deprecated. The only thing it was still used for was to set the "global default" password hash. Since the stock auth.conf contained nothing but comments, the global default was actually the first algorithm in crypt(3)'s list, which happens to be DES; I take the fact that nobody noticed as proof that it was not used outside of crypt(3).
The only other use in our tree was in the Kerberos support code in in tinyware's passwd(1). I removed that code in an earlier commit; it would not have compiled anyway, as it only supported Kerberos IV.
The auth_getval() function is now a stub that always returns NULL, which has the same effect as a functional auth_getval() with an empty auth.conf.
MFC after: 3 weeks
|
236751 |
08-Jun-2012 |
des |
Document that we also support sha256 and sha512.
MFC after: 1 week
|
235337 |
12-May-2012 |
gjb |
General mdoc(7) and typo fixes.
PR: 167804 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
|
233698 |
30-Mar-2012 |
joel |
mdoc: terminate quoted strings.
|
233665 |
29-Mar-2012 |
joel |
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.
|
233648 |
29-Mar-2012 |
eadler |
Remove trailing whitespace per mdoc lint warning
Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
|
233520 |
26-Mar-2012 |
joel |
mdoc: sort prologue macros.
|
233511 |
26-Mar-2012 |
joel |
This string should be quoted.
Noticed by: brueffer
|
233510 |
26-Mar-2012 |
joel |
mdoc: terminate quoted strings.
Reviewed by: brueffer
|
232157 |
25-Feb-2012 |
gjb |
Fix various typos in manual pages.
Submitted by: amdmi3 PR: 165431 MFC after: 1 week
|
231938 |
20-Feb-2012 |
ghelmer |
Set the O_CLOEXEC flag when opening the pidfile to avoid leaking the file descriptor via exec(3).
Now that daemon(8) has been fixed to resolve the issue noted by trociny, the consensus is that this change should be OK.
|
231852 |
17-Feb-2012 |
bz |
Merge multi-FIB IPv6 support from projects/multi-fibv6/head/:
Extend the so far IPv4-only support for multiple routing tables (FIBs) introduced in r178888 to IPv6 providing feature parity.
This includes an extended rtalloc(9) KPI for IPv6, the necessary adjustments to the network stack, and user land support as in netstat.
Sponsored by: Cisco Systems, Inc. Reviewed by: melifaro (basically) MFC after: 10 days
|
231383 |
10-Feb-2012 |
ed |
Detect file modification properly by using tv_nsec.
POSIX 2008 standardizes st_mtim, meaning we can simply use nanosecond precision to detect file modification.
MFC after: 2 weeks
|
231306 |
09-Feb-2012 |
eadler |
Fix NULL ptr dereference in setusercontext if pwd is null, LOGIN_SETPRIORITY is set, and setting the priority (rtprio or setpriority) fails.
PR: kern/164238 Submitted by: Alexander Wittig <alexander@wittig.name> Reviewed by: des Approved by: cperciva MFC after: 1 month
|
231193 |
08-Feb-2012 |
pjd |
Add a comment to the example that pidfile_* functions can handle pfh being NULL.
MFC after: 3 days
|
231192 |
08-Feb-2012 |
pjd |
Note that calling pidfile_write(3) multiple times is fine.
MFC after: 3 days
|
231087 |
06-Feb-2012 |
ghelmer |
Using the O_CLOEXEC flag on open(2) caused the pidfile lock to be lost when the child process execs daemon's target program thanks to flock(2) semantics. So, we apparently have to leak the open pidfile's file descriptor to keep the lock for the pidfile(3) functions to work properly.
Test case demonstrated by trociny:
ref8-amd64:/home/trociny% uname -r 8.2-STABLE ref8-amd64:/home/trociny% daemon -p /tmp/sleep.pid sleep 10 ref8-amd64:/home/trociny% daemon -p /tmp/sleep.pid sleep 10 daemon: process already running, pid: 19799
kopusha:~% uname -r 10.0-CURRENT kopusha:~% daemon -p /tmp/sleep.pid sleep 10 kopusha:~% daemon -p /tmp/sleep.pid sleep 10 kopusha:~%
|
230601 |
26-Jan-2012 |
ghelmer |
Consensus between bde and pjd seemed to be that if the function names are lined up, then any * after a long type should appear after the type instead of being in front of the function name on the following line.
|
230600 |
26-Jan-2012 |
ghelmer |
Make the comments consistent (capitalization, punctuation, and format).
Requested by bde
|
230599 |
26-Jan-2012 |
ghelmer |
Restore the parenthesis that are necessary around the constant values.
Requested by bde.
|
230234 |
16-Jan-2012 |
ghelmer |
Remove unnecessary includes from these libutil man pages.
Requested by bde (as was the previous commit).
|
230233 |
16-Jan-2012 |
ghelmer |
Fix more disorder in prototypes and constants. Fix header comments for each section of constants. Fix whitespace in #define lines. Fix unnecessary parenthesis in constants.
|
230037 |
12-Jan-2012 |
ghelmer |
Move struct pidfh definition into pidfile.c, and leave a forward declaration for pidfh in libutil.h in its place. This allows us to hide the contents of the pidfh structure, and also allowed removal of the "#ifdef _SYS_PARAM_H" guard from around the pidfile_* function prototypes.
Suggested by pjd.
|
230016 |
12-Jan-2012 |
ghelmer |
Fix disorder in MAN and MLINKS lists.
Requested by bde.
|
230011 |
12-Jan-2012 |
ghelmer |
More prototype formatting fixes, struct member formatting fixes, and namespace fix for property_find() prototype.
Provided by bde.
|
230010 |
12-Jan-2012 |
ghelmer |
pidfile_open() no longer uses fcntl() to set the close-on-exec flag.
|
229988 |
11-Jan-2012 |
ghelmer |
Fix prototype formatting (indentation, long lines, and continued lines).
Requested by bde.
|
229986 |
11-Jan-2012 |
ghelmer |
Fix namespace issues with prototype parameter names. Add missing prototype parameter names.
Requested by bde.
|
229985 |
11-Jan-2012 |
ghelmer |
Fix forward structure declaration and prototype disorder.
Requested by bde.
|
229966 |
11-Jan-2012 |
ghelmer |
jilles pointed out that O_CLOEXEC could be used in the open(2) flags rather than using fcntl(2) later, and in addition to saving a system call, removes a possible race with fork/exec from threads or signal handlers.
|
229951 |
11-Jan-2012 |
pjd |
Constify arguments.
|
229943 |
10-Jan-2012 |
ghelmer |
Add link for pidfile_fileno.3 to pidfile.3 - thanks again pjd!
|
229942 |
10-Jan-2012 |
ghelmer |
Style fixes courtesy of pjd.
|
229941 |
10-Jan-2012 |
ghelmer |
Document that pidfile_open() now sets the FD_CLOEXEC flag on the open file descriptor, and that errors can be returned as a result of the fcntl(2) system call.
|
229937 |
10-Jan-2012 |
ghelmer |
Add pidfile_fileno() to obtain the file descriptor for an open pidfile.
|
229936 |
10-Jan-2012 |
ghelmer |
Set the FD_CLOEXEC flag on the open pidfile file descriptor.
Discussed with: pjd, des
|
229784 |
07-Jan-2012 |
uqs |
Convert files to UTF-8 and add some copyright markers where missing.
|
229572 |
05-Jan-2012 |
bapt |
Add new pw_make_v7 to make a passwd line (in v7 format) out of a struct passwd while here, fix missing parentheses of the return statement of pw_make.
Approved by: des (mentor)
|
229403 |
03-Jan-2012 |
ed |
Replace index() and rindex() calls with strchr() and strrchr().
The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard.
This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
|
228545 |
15-Dec-2011 |
bapt |
Modify pw_copy: - if pw is NULL and oldpw is not NULL then the oldpw is deleted - if pw->pw_name != oldpw->pw_name but pw->pw_uid == oldpw->pw_uid then it renames the user
add new gr_* functions so now gr_util API is similar to pw_util API, this allow to manipulate groups in a safe way.
Reviewed by: des Approved by: des MFC after: 1 month
|
226450 |
16-Oct-2011 |
pjd |
In pidfile_open(), if the pidfile is locked, but empty (PID is not stored yet) and the caller requested other process' PID by passing non-NULL pidptr argument, we will wait at most 100ms for the PID to show up in the file and if it won't, we will store -1 in *pidptr.
From now on, pidfile_open() function never sets errno to EAGAIN on failure.
In collaboration with: des MFC after: 1 week
|
223878 |
09-Jul-2011 |
trasz |
Add missing "swapuse" resource limit.
|
223758 |
04-Jul-2011 |
attilio |
With retirement of cpumask_t and usage of cpuset_t for representing a mask of CPUs, pc_other_cpus and pc_cpumask become highly inefficient.
Remove them and replace their usage with custom pc_cpuid magic (as, atm, pc_cpumask can be easilly represented by (1 << pc_cpuid) and pc_other_cpus by (all_cpus & ~(1 << pc_cpuid))).
This change is not targeted for MFC because of struct pcpu members removal and dependency by cpumask_t retirement.
MD review by: marcel, marius, alc Tested by: pluknet MD testing by: marcel, marius, gonzo, andreast
|
222813 |
07-Jun-2011 |
attilio |
etire the cpumask_t type and replace it with cpuset_t usage.
This is intended to fix the bug where cpu mask objects are capped to 32. MAXCPU, then, can now arbitrarely bumped to whatever value. Anyway, as long as several structures in the kernel are statically allocated and sized as MAXCPU, it is suggested to keep it as low as possible for the time being.
Technical notes on this commit itself: - More functions to handle with cpuset_t objects are introduced. The most notable are cpusetobj_ffs() (which calculates a ffs(3) for a cpuset_t object), cpusetobj_strprint() (which prepares a string representing a cpuset_t object) and cpusetobj_strscan() (which creates a valid cpuset_t starting from a string representation). - pc_cpumask and pc_other_cpus are target to be removed soon. With the moving from cpumask_t to cpuset_t they are now inefficient and not really useful. Anyway, for the time being, please note that access to pcpu datas is protected by sched_pin() in order to avoid migrating the CPU while reading more than one (possible) word - Please note that size of cpuset_t objects may differ between kernel and userland. While this is not directly related to the patch itself, it is good to understand that concept and possibly use the patch as a reference on how to deal with cpuset_t objects in userland, when accessing kernland members. - KTR_CPUMASK is changed and now is represented through a string, to be set as the example reported in NOTES.
Please additively note that no MAXCPU is bumped in this patch, but private testing has been done until to MAXCPU=128 on a real 8x8x2(htt) machine (amd64).
Please note that the FreeBSD version is not yet bumped because of the upcoming pcpu changes. However, note that this patch is not targeted for MFC.
People to thank for the time spent on this patch: - sbruno, pluknet and Nicholas Esborn (nick AT desert DOT net) tested several revision of the patches and really helped in improving stability of this work. - marius fixed several bugs in the sparc64 implementation and reviewed patches related to ktr. - jeff and jhb discussed the basic approach followed. - kib and marcel made targeted review on some specific part of the patch. - marius, art, nwhitehorn and andreast reviewed MD specific part of the patch. - marius, andreast, gonzo, nwhitehorn and jceel tested MD specific implementations of the patch. - Other people have made contributions on other patches that have been already committed and have been listed separately.
Companies that should be mentioned for having participated at several degrees: - Yahoo! for having offered the machines used for testing on big count of CPUs. - The FreeBSD Foundation for having sponsored my devsummit attendance, which has been instrumental. - Sandvine for having offered offices and infrastructure during development.
(I really hope I didn't forget anyone, if it happened I apologize in advance).
|
221807 |
12-May-2011 |
stas |
- Commit work from libprocstat project. These patches add support for runtime file and processes information retrieval from the running kernel via sysctl in the form of new library, libprocstat. The library also supports KVM backend for analyzing memory crash dumps. Both procstat(1) and fstat(1) utilities have been modified to take advantage of the library (as the bonus point the fstat(1) utility no longer need superuser privileges to operate), and the procstat(1) utility is now able to display information from memory dumps as well.
The newly introduced fuser(1) utility also uses this library and able to operate via sysctl and kvm backends.
The library is by no means complete (e.g. KVM backend is missing vnode name resolution routines, and there're no manpages for the library itself) so I plan to improve it further. I'm commiting it so it will get wider exposure and review.
We won't be able to MFC this work as it relies on changes in HEAD, which was introduced some time ago, that break kernel ABI. OTOH we may be able to merge the library with KVM backend if we really need it there.
Discussed with: rwatson
|
221502 |
05-May-2011 |
obrien |
Don't duplicate define the stdint types.
|
220582 |
12-Apr-2011 |
delphij |
Add support for IEE/IEC (and now also SI) power of two notions of prefixes (Ki, Mi, Gi...) for humanize_number(3).
Note that applications has to pass HN_IEC_PREFIXES to use this feature for backward compatibility reasons.
Reviewed by: arundel MFC after: 2 weeks
|
219963 |
24-Mar-2011 |
pluknet |
Add missing resource limits: - RLIMIT_NPTS - RLIMIT_SWAP
MFC after: 1 week
|
219939 |
23-Mar-2011 |
delphij |
humanize_number(3) multiply the input number by 100, which could cause an integer overflow when the input is very large (for example, 100 Pi would become about 10 Ei which exceeded signed int64_t).
Solve this issue by splitting the division into two parts and avoid the multiplication.
PR: bin/146205 Reviewed by: arundel MFC after: 1 month
|
219850 |
21-Mar-2011 |
gjb |
s/buffer/buf as is used in the code.
Submitted by: arundel (via doc@) MFC after: 3 days
|
219344 |
06-Mar-2011 |
pjd |
expand_number() needs uint64_t, declare it here if not already declared.
MFC after: 3 days
|
219328 |
06-Mar-2011 |
trasz |
Mention setloginclass(2) in login_class(3).
|
219304 |
05-Mar-2011 |
trasz |
Add two new system calls, setloginclass(2) and getloginclass(2). This makes 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)
|
213573 |
08-Oct-2010 |
uqs |
mdoc: drop redundant .Pp and .LP calls
They have no effect when coming in pairs, or before .Bl/.Bd
|
211619 |
22-Aug-2010 |
des |
UTFize my name.
|
211397 |
16-Aug-2010 |
joel |
Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while translating these manual pages. Minor corrections by me.
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
|
211393 |
16-Aug-2010 |
des |
In setusercontext(), do not apply user settings unless running as the user in question (usually but not necessarily because we were called with LOGIN_SETUSER). This plugs a hole where users could raise their resource limits and expand their CPU mask.
MFC after: 3 weeks
|
211392 |
16-Aug-2010 |
des |
Old patch I had lying around: clean up and use stpcpy(3) instead of sprintf(3).
|
211343 |
15-Aug-2010 |
des |
Further simplify the code, and update the manpage.
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
|
211338 |
15-Aug-2010 |
des |
no-op commit to note that the example given in the previous commit is a very bad one, since the shift does not actually overflow. This is a better example (assuming uint64_t = unsigned long long):
~0LLU >> 9 = 0x7fffffffffffffLLU ~0LLU >> 9 << 10 = 0xfffffffffffffc00LLU ~0LLU >> 9 << 10 >> 10 = 0x3fffffffffffffLLU
|
211337 |
15-Aug-2010 |
des |
Fix the overflow test. It is possible for the result of an overflowing shift to be larger than the original value, e.g.
(uint64_t)1 << 53 = 0x20000000000000 ((uint64_t)1 << 53) << 10 = 0x8000000000000000
|
211304 |
14-Aug-2010 |
des |
Simplify expand_number() by combining the (unrolled) loop with the switch. Since expand_number() does not accept negative numbers, switch from int64_t to uint64_t; this makes it easier to check for overflow.
MFC after: 3 weeks
|
210933 |
06-Aug-2010 |
joel |
Fix typos and spelling mistakes.
|
210823 |
03-Aug-2010 |
joel |
Spelling fixes.
|
207736 |
07-May-2010 |
mckusick |
Merger of the quota64 project into head.
This joint work of Dag-Erling Smørgrav and myself updates the FFS quota system to support both traditional 32-bit and new 64-bit quotas (for those of you who want to put 2+Tb quotas on your users).
By default quotas are not compiled into the kernel. To include them in your kernel configuration you need to specify:
options QUOTA # Enable FFS quotas
If you are already running with the current 32-bit quotas, they should continue to work just as they have in the past. If you wish to convert to using 64-bit quotas, use `quotacheck -c 64'; if you wish to revert from 64-bit quotas back to 32-bit quotas, use `quotacheck -c 32'.
There is a new library of functions to simplify the use of the quota system, do `man quotafile' for details. If your application is currently using the quotactl(2), it is highly recommended that you convert your application to use the quotafile interface. Note that existing binaries will continue to work.
Special thanks to John Kozubik of rsync.net for getting me interested in pursuing 64-bit quota support and for funding part of my development time on this project.
|
206622 |
14-Apr-2010 |
uqs |
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)
|
204587 |
02-Mar-2010 |
joel |
The NetBSD Foundation has granted permission to remove clause 3 and 4 from their software.
Obtained from: NetBSD
|
202500 |
17-Jan-2010 |
ed |
Fix a regression that was introduced in r191882.
I changed login_tty() to only work when the application is not a session leader yet. This works fine for applications in the base system, but it turns out various applications call this function after daemonizing, which means they already use their own session.
If setsid() fails, just call tcsetsid() on the current session. tcsetsid() will already perform proper security checks.
Reported by: Oliver Lehmann MFC after: 1 week
|
202216 |
13-Jan-2010 |
ed |
Remove login(3), logout(3) and logwtmp(3) from libutil.
These functions only apply to utmp(5). They cannot be kept intact when moving towards utmpx. The login(3) function would break, because its argument is an utmp structure. The logout(3) and logwtmp(3) functions cannot be used, since they provide a functionality which partially overlaps.
Increment SHLIB_MAJOR to 9 to indicate the removal.
|
201381 |
02-Jan-2010 |
ed |
Build lib/ with WARNS=6 by default.
Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed.
I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway.
|
200423 |
12-Dec-2009 |
scf |
Remove a dead store.
MFC after: 5 days
|
200035 |
02-Dec-2009 |
ed |
Make <libutil.h> work when included by itself.
There are several reasons why it didn't work:
- It was missing <sys/cdefs.h> for __BEGIN_DECLS. - It uses various primitive types that were not declared.
|
199826 |
26-Nov-2009 |
kib |
sigset() is the name of function specified by SUSv4. Replace it to avoid conflict.
MFC after: 3 weeks
|
195767 |
19-Jul-2009 |
kensmith |
Bump the version of all non-symbol-versioned shared libraries in preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version.
Reviewed by: kib Approved by: re (rwatson)
|
194831 |
24-Jun-2009 |
rwatson |
Fix copy-and-paste-o's from kinfo_getfile.3 in kinfo_getvmmap.3.
MFC after: 3 days
|
194794 |
23-Jun-2009 |
delphij |
Merge NetBSD revision 1.14: humanize_number.c is now 2-clause BSD licensed. (humanize_number.3 intentionally hold back until I make sure why we didn't merged dehumanize_number(3)).
Obtained from: NetBSD
|
194767 |
23-Jun-2009 |
kib |
Usermode portion of the support for swap allocation accounting: - update for getrlimit(2) manpage; - support for setting RLIMIT_SWAP in login class; - addition to the limits(1) and sh and csh limit-setting builtins; - tuning(7) documentation on the sysctls controlling overcommit.
In collaboration with: pho Reviewed by: alc Approved by: re (kensmith)
|
194240 |
15-Jun-2009 |
jhb |
Note that the structures are defined in <sys/user.h> in the text (using language from stat(2)) rather than in the synopsis.
Requested by: bde
|
194071 |
12-Jun-2009 |
jhb |
- Note that these interfaces require <sys/user.h> for the structure definitions. - Note that these functions return NULL on failure.
MFC after: 3 days
|
193591 |
06-Jun-2009 |
des |
Revert (once again, and hopefully for the last time) to flock(2) locks. The problem with fcntl(2) locks is that they are not inherited by child processes. This breaks pidfile(3), where the common idiom is to open and lock the PID file before daemonizing.
|
193589 |
06-Jun-2009 |
des |
Add missing .Pp
|
191882 |
07-May-2009 |
ed |
Add tcsetsid(3).
The entire world seems to use the non-standard TIOCSCTTY ioctl to make a TTY a controlling terminal of a session. Even though tcsetsid(3) is also non-standard, I think it's a lot better to use in our own source code, mainly because it's similar to tcsetpgrp(), tcgetpgrp() and tcgetsid().
I stole the idea from QNX. They do it the other way around; their TIOCSCTTY is just a wrapper around tcsetsid(). tcsetsid() then calls into an IPC framework.
|
186512 |
27-Dec-2008 |
rwatson |
Include param.h instead of types.h when using user.h. Otherwise there is a dependence on ucred.h including audit.h including param.h, which we would like to eliminate.
MFC after: 3 weeks
|
186314 |
19-Dec-2008 |
marcus |
Initialize the cntp pointer to 0 prior to doing any work so that callers don't try to iterate through garbage or NULL memory. Additionally, return NULL instead of 0 on error.
Reviewed by: peter Approved by: peter
|
185729 |
07-Dec-2008 |
peter |
Add filler man pages for the kinfo functions I added recently. While here, hook up the hexdump(3) man page which wasn't being installed.
|
185553 |
02-Dec-2008 |
peter |
Attempt a quick bandaid for arm build breakage. I went to the trouble of maintaining alignment, but I'm not sure how to tell gcc this.
|
185548 |
02-Dec-2008 |
peter |
Merge user/peter/kinfo branch as of r185547 into head.
This changes struct kinfo_filedesc and kinfo_vmentry such that they are same on both 32 and 64 bit platforms like i386/amd64 and won't require sysctl wrapping.
Two new OIDs are assigned. The old ones are available under COMPAT_FREEBSD7 - but it isn't that simple. The superceded interface was never actually released on 7.x.
The other main change is to pack the data passed to userland via the sysctl. kf_structsize and kve_structsize are reduced for the copyout. If you have a process with 100,000+ sockets open, the unpacked records require a 132MB+ copyout. With packing, it is "only" ~35MB. (Still seriously unpleasant, but not quite as devastating). A similar problem exists for the vmentry structure - have lots and lots of shared libraries and small mmaps and its copyout gets expensive too.
My immediate problem is valgrind. It traditionally achieves this functionality by parsing procfs output, in a packed format. Secondly, when tracing 32 bit binaries on amd64 under valgrind, it uses a cross compiled 32 bit binary which ran directly into the differing data structures in 32 vs 64 bit mode. (valgrind uses this to track file descriptor operations and this therefore affected every single 32 bit binary)
I've added two utility functions to libutil to unpack the structures into a fixed record length and to make it a little more convenient to use.
|
185277 |
25-Nov-2008 |
avatar |
Fixing !INET6 builds.
|
185237 |
23-Nov-2008 |
scf |
Fixed style issues with variable ordering and naming, spacing and parentheses.
Fixed alignment issue in gr_dup() in its assignment of gr_mem using a struct to force alignment without performing alignment mathematics. This was noticed recently with libutil was built with WARNS=6 on platform such as sparc64.
Added checks to gr_dup(), gr_equal() and gr_make() to prevent segfaults when examining struct group's with the struct members pointing to NULL's.
With fix of alignment issue, restore WARNS?=6.
Reviewed by: des MFC after: 1 week
|
184831 |
11-Nov-2008 |
scf |
style(9) fixes.
MFC after: 1 week
|
184683 |
05-Nov-2008 |
des |
Like many other functions that handle sockaddrs, realhostname_sa() takes a struct sockaddr * that it casts internally to the appropriate type based on sa_family. However, struct sockaddr has very lax alignment requirements, which causes the compiler to complain when you cast a struct sockaddr * to, say, a struct sockaddr_in6 *.
I find it reasonable to assume that the pointer we received is in fact correctly aligned. Therefore, we can work around the compiler warnings by casting to void * before casting to the desired type. For readability's sake, this is done with macros.
The same technique should prove useful in other parts of the tree that deal with socket addresses.
MFC after: 3 weeks
|
184677 |
05-Nov-2008 |
des |
Comment out WARNS. There are too many alignment issues in libutil.
|
184676 |
05-Nov-2008 |
des |
Disconnect gr_util.c from the build. It isn't documented or used anywhere in the tree, and due to unsafe pointer arithmetic, it will most likely crash on architectures with strict alignment requirements.
|
184635 |
04-Nov-2008 |
des |
libutil now builds at WARNS level 6.
MFC after: 3 weeks
|
184634 |
04-Nov-2008 |
des |
Add missing header.
|
184633 |
04-Nov-2008 |
des |
Avoid assigning a const char * to a char *.
MFC after: 3 weeks
|
184389 |
28-Oct-2008 |
ed |
Remove unneeded call to revoke() inside openpty().
As discussed on the commits list, there is no need to call revoke() inside openpty(). On RELENG_6 and RELENG_7 unlockpt() will call revoke(). On HEAD we create pseudo-terminals on demand, so there is no need to revoke the slave device node.
This change should never be MFC'd, because the implementation we have in RELENG_6 and RELENG_7 should work flawlessly with older versions of libc.
Discussed with: jhb MFC after: never
|
184094 |
20-Oct-2008 |
des |
Diff reduction against Varnish, including one important fix: use a shared lock if the file is opened with O_RDONLY.
|
184093 |
20-Oct-2008 |
des |
Reimplement flopen(3) using fcntl(2) locks instead of flock(2) locks.
|
184092 |
20-Oct-2008 |
des |
pidfile(3) uses flopen(3) - don't make any assumptions about how the latter is implemented.
|
184091 |
20-Oct-2008 |
des |
There is no point in releasing a lock on a file which we've unlinked and are about to close, so don't. As a bonus, pidfile_remove(3) will now work with an fcntl(2)-based flopen(3).
|
184088 |
20-Oct-2008 |
des |
Since in_lt() and in_lts() are not static, assume that they are intended to be part of the public API. Accordingly, add prototypes and document them.
|
184087 |
20-Oct-2008 |
des |
Additional style and whitespace fixes.
|
184086 |
20-Oct-2008 |
des |
Style and whitespace
|
184085 |
20-Oct-2008 |
des |
Unbreak
|
184084 |
20-Oct-2008 |
des |
Since setclasscpumask() is not static, assume that it is intended to be part of the public API. Accordingly, add a prototype and document it.
|
184083 |
20-Oct-2008 |
des |
Style and whitespace.
|
184082 |
20-Oct-2008 |
des |
Parenthesize return values.
|
184081 |
20-Oct-2008 |
des |
include and whitespace cleanup.
|
183989 |
17-Oct-2008 |
delphij |
Use strlcpy() when we mean it.
|
183565 |
03-Oct-2008 |
ed |
Small cleanups to openpty().
- Pass O_NOCTTY to posix_openpt(2). This makes the implementation work consistently on implementations that make the PTY the controlling TTY by default.
- Call unlockpt() before opening the slave device. POSIX mentions that de slave device should only be opened after grantpt() and unlockpt() have been called.
- Replace some redundant code by a label.
In theory we could remove a lot of code from openpty() on FreeBSD -CURRENT, because grantpt(), unlockpt() and revoke() are not needed in our implementation. We'd better keep them there. This makes the code still work with older FreeBSD releases and even makes it work on other non-BSD operating systems.
I've compiled openpty() on Linux. You only need to remove the revoke() call, because revoke() on Linux always returns -1. Apart from that, it seems to work like it should.
Reviewed by: jhb
|
181905 |
20-Aug-2008 |
ed |
Integrate the new MPSAFE TTY layer to the FreeBSD operating system.
The last half year I've been working on a replacement TTY layer for the FreeBSD kernel. The new TTY layer was designed to improve the following:
- Improved driver model:
The old TTY layer has a driver model that is not abstract enough to make it friendly to use. A good example is the output path, where the device drivers directly access the output buffers. This means that an in-kernel PPP implementation must always convert network buffers into TTY buffers.
If a PPP implementation would be built on top of the new TTY layer (still needs a hooks layer, though), it would allow the PPP implementation to directly hand the data to the TTY driver.
- Improved hotplugging:
With the old TTY layer, it isn't entirely safe to destroy TTY's from the system. This implementation has a two-step destructing design, where the driver first abandons the TTY. After all threads have left the TTY, the TTY layer calls a routine in the driver, which can be used to free resources (unit numbers, etc).
The pts(4) driver also implements this feature, which means posix_openpt() will now return PTY's that are created on the fly.
- Improved performance:
One of the major improvements is the per-TTY mutex, which is expected to improve scalability when compared to the old Giant locking. Another change is the unbuffered copying to userspace, which is both used on TTY device nodes and PTY masters.
Upgrading should be quite straightforward. Unlike previous versions, existing kernel configuration files do not need to be changed, except when they reference device drivers that are listed in UPDATING.
Obtained from: //depot/projects/mpsafetty/... Approved by: philip (ex-mentor) Discussed: on the lists, at BSDCan, at the DevSummit Sponsored by: Snow B.V., the Netherlands dcons(4) fixed by: kan
|
180815 |
25-Jul-2008 |
brooks |
Add support for a new login capability, cpumask which allows login sessions to be pinned to cpus by login class.
|
180347 |
07-Jul-2008 |
kib |
Add #include <inttypes.h> for the strtoimax().
Submitted by: Jilles Tjoelker <jilles stack nl> MFC after: 3 days
|
180161 |
01-Jul-2008 |
jhb |
Merge hexdump(9) to userland as hexdump(3) in libutil. I'm tired of doing this by hand in userland utilities.
MFC after: 1 month
|
178431 |
23-Apr-2008 |
scf |
Add four utility functions related to struct grp processing modeled in-part after similar calls related to struct pwd in libutil/pw_util.c: - gr_equal() Perform a deep comparison of two struct grp's. It does a thorough, yet unoptimized comparison of all the members regardless of order.
- gr_make() Create a string (see group(5)) from a struct grp.
- gr_dup() Duplicate a struct grp. Returns a value that is a single contiguous block of memory.
- gr_scan() Create a struct grp from a string (as produced by gr_make()).
MFC after: 3 weeks
|
176954 |
08-Mar-2008 |
antoine |
Merge changes from NetBSD on humanize_number.c, 1.8 -> 1.13 Significant changes: - rev. 1.11: Use PRId64 instead of a cast to long long and %lld to print an int64_t. - rev. 1.12: Fix a bug that humanize_number() produces "1000" where it should be "1.0G" or "1.0M". The bug reported by Greg Troxel.
PR: 118461 PR: 102694 Approved by: rwatson (mentor) Obtained from: NetBSD MFC after: 1 month
|
175352 |
15-Jan-2008 |
jhb |
Put back the openpty(3) and ptsname(3) fixes but don't disable ptsname(3) on pts(4) devices this time. This fixes the issues while leaving pts(4) enabled on HEAD.
|
175350 |
15-Jan-2008 |
cperciva |
Back out last commit, since it accidentally broke pts.
The security fix will be re-committed soon, hopefully without breaking anything.
|
175336 |
14-Jan-2008 |
jhb |
Update the manpage for openpty(3) to account for the recent fixes. Specifically, remove the BUGS section and note that openpty(3) now always does the various security-related steps. Also, update the error return value section. The PR below is for the original bug rather than the doc updates.
MFC after: 1 week PR: bin/9770
|
175330 |
14-Jan-2008 |
cperciva |
Fix issues which allow snooping on ptys. [08:01]
Fix an off-by-one error in inet_network(3). [08:02]
Security: FreeBSD-SA-08:01.pty Security: FreeBSD-SA-08:02.libc
|
174818 |
20-Dec-2007 |
jhb |
Invoke revoke(2) on the slave pty in the pts(4) case (new_openpty()) to kick off any other users on the device line before using it since openpty(3) is documented to do this. Note that grantpt(3) does not call revoke(2), it only adjusts permissions and ownership.
MFC after: 3 days
|
173755 |
19-Nov-2007 |
jhb |
Bump up the number of ttys supported by pty(4) to 512 by making use of [pt]ty[lmnoLMNO][0-9a-v].
MFC after: 3 days Reviewed by: rwatson
|
173719 |
18-Nov-2007 |
jb |
Constify the first argument to expand_number() so that it can be called with a const without the compiler grisling.
|
172611 |
13-Oct-2007 |
simon |
Minor mdoc cleanup: Every sentence should start on its own line.
|
172577 |
12-Oct-2007 |
kib |
When pidfile is already locked and has zero length, do not return success and zero pid from pidfile_read(). Return EAGAIN instead. Sleep up to three times for 5 ms while waiting for pidfile to be written.
mount(8) does the kill(mountpid, SIGHUP). If mountd pidfile is truncated, that would result in the SIGHUP delivered to the mount' process group instead of the mountd.
Found and analyzed by: Peter Holm Tested by: Peter Holm, kris Reviewed by: pjd MFC after: 1 week
|
172381 |
28-Sep-2007 |
obrien |
Adjust history.
Approved by: re(ken)
|
172049 |
05-Sep-2007 |
pjd |
- Fix strange for loop.
Reported by: phk
- While here, check the unit before calculating the actually number. This way we can return EINVAL for invalid unit instead of ERANGE.
Approved by: re (kensmith)
|
172048 |
05-Sep-2007 |
pjd |
Point expand_number(3) at humanize_number(3) and nive versa.
Suggested by: trhodes Approved by: re (kensmith)
|
172029 |
01-Sep-2007 |
pjd |
Implement expand_number(3), which is the opposite of humanize_number(3), ie. a number in human-readable form is converted to int64_t, for example: 123b -> 123 10k -> 10240 16G -> 17179869184
First version submitted by: Eric Anderson <anderson@freebsd.org> Approved by: re (bmah)
|
171706 |
03-Aug-2007 |
des |
Back out previous commit until I figure out why my regression test fails.
Approved by: re (kensmith)
|
171705 |
03-Aug-2007 |
des |
Use fcntl(2)-style locks instead of less-portable flock(2)-style locks.
Approved by: re (kensmith)
|
170718 |
14-Jun-2007 |
yar |
Document the quirks of ~/.login_conf and LOGIN_MECLASS.
|
170716 |
14-Jun-2007 |
yar |
Improve mdoc(7) markup.
|
170713 |
14-Jun-2007 |
yar |
Update some comments, mostly regarding LOGIN_MECLASS and ~/.login_conf.
|
169899 |
23-May-2007 |
des |
Nit: avoid shadowing truncate(2) with a local variable.
|
169897 |
23-May-2007 |
des |
Fix stupid braino in previous commit.
|
169894 |
23-May-2007 |
des |
If (flags & O_TRUNC), don't truncate the file until we've successfully locked it.
MFC after: 3 weeks
|
169807 |
21-May-2007 |
deischen |
Bump library versions in preparation for 7.0.
Ok'd by: kan
|
169468 |
11-May-2007 |
des |
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
|
169455 |
10-May-2007 |
des |
Fix typo.
Submitted by: BÃ¥rd Skaflestad <bardsk@math.ntnu.no>
|
169450 |
10-May-2007 |
des |
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.
|
169449 |
10-May-2007 |
des |
Remove superfluous unexpanded RCS tag.
|
169448 |
10-May-2007 |
des |
Use flopen(3).
MFC after: 3 weeks
|
169447 |
10-May-2007 |
des |
DTRT when O_NONBLOCK is specified.
MFC after: 3 weeks
|
169446 |
10-May-2007 |
des |
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
|
169189 |
01-May-2007 |
yar |
Fix one kind of style(9) bug and a typo in a comment.
Tested with: md5(1)
|
165906 |
09-Jan-2007 |
imp |
Remove California Regent's clause 3, per letter
|
164005 |
05-Nov-2006 |
trhodes |
Fix a typo: "the give login class" to "the given login class."
PR: 75577 Submitted by: Nobuyuki Koganemaru
|
163193 |
10-Oct-2006 |
ru |
Fix markup in previous revision.
|
163186 |
09-Oct-2006 |
trhodes |
Add information on how to escape a literal colon in a value or name.
PR: 101262
|
162841 |
30-Sep-2006 |
ru |
Revise markup in recently added manpages.
|
162385 |
17-Sep-2006 |
ru |
Markup fixes.
|
162141 |
08-Sep-2006 |
thomas |
Minor comment fix.
|
161997 |
04-Sep-2006 |
thomas |
(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
|
161545 |
23-Aug-2006 |
yar |
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)
|
160745 |
27-Jul-2006 |
yar |
style.Makefile(5) is good for our eyes.
|
160389 |
15-Jul-2006 |
imp |
Note the convention that humanize_number follows. Add 'engineering' numbers to table.
|
160297 |
12-Jul-2006 |
maxim |
o Add missed comma, xref kld(4).
|
159874 |
23-Jun-2006 |
brian |
Remove some unused variables
|
159680 |
17-Jun-2006 |
maxim |
o Typo: ownship -> ownership.
Obtained from: DragonFlyBSD
|
159503 |
11-Jun-2006 |
akiyama |
Specify default path for SHLIBDIR before bsd.own.mk does. This fix shared library installed correct place.
|
159467 |
09-Jun-2006 |
delphij |
Don't build IPv6 support if we have choosen not to have it.
|
158907 |
25-May-2006 |
delphij |
- Add include for libutil.h and string.h for prototype. - Cast the rvalue to be compared with the result of strlen() to size_t.
|
158794 |
21-May-2006 |
ume |
Bump library majro version for gethostbyaddr(3).
|
157874 |
19-Apr-2006 |
brueffer |
Document how the backoff delay is calculated.
Submitted by: markus MFC after: 3 days
|
157671 |
11-Apr-2006 |
jmg |
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
|
156280 |
04-Mar-2006 |
keramida |
Use `intmax_t' instead of plain `int' for pid_t casts.
Useful tips from: ru, bde Approved by: pjd MFC after: 3 days
|
155804 |
18-Feb-2006 |
des |
Add utility functions for checking if a given kernel module is loaded, and loading it.
|
154952 |
28-Jan-2006 |
pjd |
- 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
|
154835 |
26-Jan-2006 |
cognet |
Teach openpty() how to deal with pts.
|
154429 |
16-Jan-2006 |
rwatson |
Restore use of strncpy(), as there is later unconditional termination of the string, and reliance on the returned pointer.
Found by: bde (tm)
|
154417 |
16-Jan-2006 |
rwatson |
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
|
154414 |
16-Jan-2006 |
rwatson |
Fix typo in comment.
MFC after: 3 days
|
153867 |
30-Dec-2005 |
csjp |
Document the LOGIN_SETMAC setusercontext(3) flag. While we are here, drop in an external reference to mac_set_proc(3).
|
152886 |
28-Nov-2005 |
jhb |
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
|
152764 |
24-Nov-2005 |
ru |
Fix prototype.
|
152579 |
18-Nov-2005 |
ru |
Fix markup, grammar and spelling.
|
150955 |
05-Oct-2005 |
brooks |
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)
|
150214 |
16-Sep-2005 |
pjd |
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
|
149423 |
24-Aug-2005 |
pjd |
Add a family of functions for reliable pidfiles handling.
Idea from: jmg Discussed on: arch@
|
148297 |
22-Jul-2005 |
kensmith |
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...)
|
146187 |
13-May-2005 |
ume |
NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special for it, now.
|
145426 |
22-Apr-2005 |
trhodes |
Properly spell default in a comment.
|
144863 |
10-Apr-2005 |
delphij |
Remove duplicated "bytes".
Submitted by: Wojciech A. Koszek [dunstan freebsd czest pl] PR: 79747
|
142721 |
27-Feb-2005 |
trhodes |
Fix grammatical issue.
Submitted by: ceri
|
142600 |
26-Feb-2005 |
trhodes |
Use ~/.login_conf when discussing a user's local file.
Suggested by: ru
|
142411 |
25-Feb-2005 |
trhodes |
Reword previous commit to be a bit more correct and provide more information.
Inspiried by: ru
|
142330 |
23-Feb-2005 |
trhodes |
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>
|
141846 |
13-Feb-2005 |
ru |
Expand *n't contractions.
|
140574 |
21-Jan-2005 |
ru |
Reflect the reality; only crypt(3) uses /etc/auth.conf for the time being.
|
140505 |
20-Jan-2005 |
ru |
Sort sections.
|
140081 |
11-Jan-2005 |
ru |
Scheduled mdoc(7) sweep.
|
139389 |
29-Dec-2004 |
trhodes |
Various markup and spelling fixes.
PR: 75574 Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> (original version)
|
139012 |
18-Dec-2004 |
ru |
Grammar in a comment.
|
135820 |
26-Sep-2004 |
pjd |
Backout manual page updates.
Requested by: ru
|
135792 |
25-Sep-2004 |
pjd |
Take the lastest fixes from NetBSD.
Obtained from: NetBSD
|
135317 |
16-Sep-2004 |
pjd |
There is no such manual page in FreeBSD.
|
134093 |
21-Aug-2004 |
obrien |
Document when this function came into FreeBSD.
|
133210 |
06-Aug-2004 |
roam |
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)
|
133206 |
06-Aug-2004 |
roam |
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
|
131759 |
07-Jul-2004 |
ru |
Markup fixes.
|
131539 |
03-Jul-2004 |
ru |
Eliminate double whitespace.
|
131504 |
02-Jul-2004 |
ru |
Mechanically kill hard sentence breaks.
|
129733 |
25-May-2004 |
pjd |
Humanize_number(3) is a part of libutil.
|
129730 |
25-May-2004 |
trhodes |
You want to include libutil.h, not util.h. Some minor sentence tweaking.
|
129677 |
24-May-2004 |
pjd |
Add humanize_number(3) to libutil for formating numbers into a human readable form.
Obtained from: NetBSD
|
129392 |
18-May-2004 |
stefanf |
Don't depend on NULL's expansion being a pointer, cast it before it is passed to variadic functions.
Approved by: das (mentor)
|
129113 |
11-May-2004 |
dds |
Fix and clarify unparsable sentence.
MFC after: 2 weeks
|
129112 |
11-May-2004 |
dds |
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
|
126419 |
29-Feb-2004 |
kientzle |
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...
|
126299 |
26-Feb-2004 |
kientzle |
Add the clean_environment call to libutil.h also.
MFC after: 2 weeks
|
126298 |
26-Feb-2004 |
kientzle |
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
|
122583 |
12-Nov-2003 |
rwatson |
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
|
121668 |
29-Oct-2003 |
tjr |
Remove __NETBSD_SYSCALLS.
|
121530 |
26-Oct-2003 |
peter |
(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.
|
121193 |
18-Oct-2003 |
markm |
ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.
|
121192 |
18-Oct-2003 |
markm |
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.
|
119964 |
10-Sep-2003 |
ru |
mdoc(7): Properly mark C headers.
|
119071 |
18-Aug-2003 |
obrien |
style.Makefile(5)
|
119017 |
17-Aug-2003 |
gordon |
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.
|
116344 |
14-Jun-2003 |
markm |
Tidy up. Sort headers.
|
114703 |
05-May-2003 |
murray |
Backout last commit. It is redundant in -CURRENT.
Pointed out by: David Schultz
|
114675 |
04-May-2003 |
murray |
Note that the idletime setting is not enforced.
PR: docs/40952 MFC After: 3 days
|
114648 |
04-May-2003 |
murray |
Document the login-backoff and login-retries capabilities.
PR: docs/51397 MFC After: 3 days
|
114065 |
26-Apr-2003 |
trhodes |
Add vmemoryuse to the list.
PR: 50796 Submitted by: Dmitry Sivachenko <mitya@cavia.pp.ru>
|
113333 |
10-Apr-2003 |
des |
Brucify.
|
113305 |
09-Apr-2003 |
des |
Correctly detect the case where a password entry was changed while we were preparing to edit it.
PR: bin/50563
|
113301 |
09-Apr-2003 |
des |
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
|
113265 |
08-Apr-2003 |
des |
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
|
112541 |
24-Mar-2003 |
charnier |
The .Fn function
|
112328 |
17-Mar-2003 |
das |
Make pw_edit() use /bin/sh to interpret the EDITOR environment variable.
PR: 48748 Reviewed by: mike (mentor)
|
111891 |
05-Mar-2003 |
das |
Re-document unimplemented capabilities that were removed in the last revision of this file, but note that they are not supported in the base system.
Requested by: ache Reviewed by: ache, mike (mentor)
|
111791 |
03-Mar-2003 |
das |
- Document the fact that we now use pam_passwdqc(8) to check password quality, not login.conf(5). - Move warnexpire and warnpasswd from the ``Accounting Limits'' section to ``Authentication'', and nix everything else in the former section. The accounting knobs are not available in the base system, and the subset of them available in ports should be documented in the ports' manpages.
PR: 47960 Reviewed by: mike (mentor), doc
|
111285 |
23-Feb-2003 |
ru |
mdoc(7) police: markup laundry.
|
109916 |
27-Jan-2003 |
ache |
Now return NULLified struct in case of empty config file (previous variant return NULL pointer for both empty file case and error case, so caller can't sense error properly).
It not affect existen programs because property_find() now returns NULL for both NULL pointer and NULLified struct.
|
109915 |
27-Jan-2003 |
ache |
Handle read errors
|
109515 |
19-Jan-2003 |
ache |
Add (unsigned char) cast to ctype macros Handle NULL return from malloc and strdup
|
108470 |
30-Dec-2002 |
schweikh |
Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/ Add FreeBSD Id tag where missing.
|
108317 |
27-Dec-2002 |
schweikh |
english(4) police.
|
107177 |
22-Nov-2002 |
chris |
Document the `label' capability.
Approved by: re Sponsored by: DARPA, Network Associates Labs Obtained from: TrustedBSD Project
|
107030 |
17-Nov-2002 |
peter |
Oops. Some ut_time stuff slipped through the cracks. These turned out to be non-fatal due to stack alignment roundups.
|
106831 |
12-Nov-2002 |
rwatson |
Add LOGIN_SETMAC to the list of flags that can't be set without class information, since we rely on the pwd entry to know what MAC labels to set as part of the login process.
Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
|
106194 |
30-Oct-2002 |
sheldonh |
Use "deprecated" instead of "depreciated" where appropriate.
|
106140 |
29-Oct-2002 |
des |
Don't forget to '\n'-terminate new entries. This unbreaks chpass -a.
Submitted by: joerg
|
105757 |
23-Oct-2002 |
rwatson |
If LOGIN_SETMAC is set and MAC is enabled in the kernel, then see if the user has a 'label' entry in their login class. If so, attempt to set that label on the process as part of the credential setup. If we're unable to parse the label, or unable to set the label, fail. In the future, we may also want to warn if a label is set but the kernel doesn't support MAC.
Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
|
104073 |
28-Sep-2002 |
peter |
Zap now-unused SHLIB_MINOR
|
102411 |
25-Aug-2002 |
charnier |
Replace various spelling with FALLTHROUGH which is lint()able
|
101959 |
16-Aug-2002 |
rwatson |
Add LOGIN_SETMAC, which will indicate to the user context management code that it should also set the user's default MAC label, if available and permitted.
Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
|
101658 |
11-Aug-2002 |
rwatson |
Whitespace cleanup--it's not style(9), but it is consistent. Prep for MAC-related commits to the login infrastructure.
Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
|
101582 |
09-Aug-2002 |
ru |
mdoc(7) police: spelling.
|
98977 |
28-Jun-2002 |
ache |
Add additional field 'overwrite' to login_vars. It mainly needed to handle "term" according to manpage, i.e. not overwrite it, if already present in environment.
|
98875 |
26-Jun-2002 |
sobomax |
Backout previous delta (addition of -I${.CURDIR}/../../sys).
Submitted by: bde
|
98874 |
26-Jun-2002 |
sobomax |
Add -I${.CURDIR}/../../sys into CFLAGS, which should fix the world broken by RLIMIT_VMEM addition.
|
98852 |
26-Jun-2002 |
dillon |
Add documentation for vmemoryuse
|
98851 |
26-Jun-2002 |
dillon |
Make libutil aware of vmemoryuse in its login.conf cap processing (aka sshd, /usr/bin/login, etc)
|
98693 |
23-Jun-2002 |
n_hibma |
Be more clear in error messages. Distinguish between a held lock and a failed lock op.
If rpc.lockd is not running on a diskless client this makes clearer what the problem is.
|
98021 |
07-Jun-2002 |
ume |
Return HOSTNAME_INVALIDADDR when reverse lookup is fail.
Submitted by: Sergey Zorin <sergey@cc.tpu.edu.ru>
|
97621 |
30-May-2002 |
wollman |
Add used include of <string.h>.
|
96220 |
08-May-2002 |
des |
If no old_pw was passed to pw_copy, compare just the name.
Sponsored by: DARPA, NAI Labs
|
96199 |
08-May-2002 |
des |
Add passwd manipulation code based on parts of vipw and chpass.
Sponsored by: DARPA, NAI Labs
|
95126 |
20-Apr-2002 |
des |
login(3) doesn't care about the controlling terminal any more.
|
95125 |
20-Apr-2002 |
des |
Fix for the sshd(8) utmp problem. Previously, login(3) would ignore the tty named by its argument and use ttyslot(3) instead to determine what slot to use. The problem is that sshd(8) calls pam_open_session(3) before forking the child (as it should), at which point it does not have a controlling terminal. Also, ttyslot(3) is very crude as it assumes fd 0, 1 or 2 refers to the controlling terminal, which is usually (but not always) the case.
Instead of using ttyslot(3) to determine the slot number, look up the specified tty in /etc/ttys ourselves (this is what ttyslot(3) does anyway).
(perforce change 9969)
Sponsored by: DARPA, NAI Labs
|
94897 |
17-Apr-2002 |
des |
Make mppath and masterpasswd pointers instead of arrays, and initialize them to point at static strings that contain the default paths. This makes 'vipw -d' work again (I broke it in rev 1.21; apologies for taking so long to fix it.)
Spotted by: Olivier Houchard <doginou@cognet.ci0.org> Sponsored by: DARPA, NAI Labs
|
94829 |
16-Apr-2002 |
ceri |
Add a missing cross-ref.
Approved by: murray MFC after: 1 week
|
94776 |
15-Apr-2002 |
des |
Remove bogus reference to _use_yp.
|
94202 |
08-Apr-2002 |
ru |
Const poisoning.
|
92941 |
22-Mar-2002 |
obrien |
Remove multi-line __P() usage.
|
92917 |
21-Mar-2002 |
obrien |
Remove __P() usage.
|
92913 |
21-Mar-2002 |
obrien |
Remove 'register' keyword.
|
91750 |
06-Mar-2002 |
des |
Remove a bogus cast.
|
91574 |
03-Mar-2002 |
dd |
Correct a typo.
PR: 35273 Submitted by: Nicola Vitale <nivit@libero.it>
|
91241 |
25-Feb-2002 |
bde |
#include <time.h> for the definition of time functions instead of depending on namespace pollution 2 layers deep in <sys/stat.h>.
Sorted includes.
|
91211 |
25-Feb-2002 |
bde |
#include <stddef.h> for the definition of NULL instead of depending on namespace pollution 2 layers deep in <sys/stat.h>.
Sorted includes.
|
90233 |
05-Feb-2002 |
des |
ANSIfy and constify.
Sponsored by: DARPA, NAI Labs
|
86452 |
16-Nov-2001 |
rwatson |
o Reflect repo-copy of extattr.[c3] from libutil to libc, moving extattr namespace routines to the libc/posix1e directory. While the extattr calls are not strictly POSIX.1e, POSIX.1e wasn't strictly ever approved, so I think that's OK.
Obtained from: TrustedBSD Project
|
86451 |
16-Nov-2001 |
rwatson |
o Document 'nocheckmail' login capability.
|
86444 |
16-Nov-2001 |
rwatson |
Although the 'bool' type is referenced in the list of capabilities, it is not defined in the capability type list. Provide a definition for 'bool', if a slightly less than elegant one. Note that this definition does not include the complete scope of available behavior defined in cgetcap(3), and could probably be improved.
|
84793 |
11-Oct-2001 |
yar |
Fix the phrase about "both files", which must be left from login(3). This page, logwtmp(3), speaks of only one file -- wtmp(5).
MFC after: 1 week
|
84306 |
01-Oct-2001 |
ru |
mdoc(7) police: Use the new .In macro for #include statements.
|
84225 |
30-Sep-2001 |
dillon |
Add __FBSDID()s to libutil
|
83923 |
25-Sep-2001 |
ache |
1) Back out ~/.login_conf disable 2) Pick only "me" class from ~/.login_conf as documented
|
83550 |
16-Sep-2001 |
rwatson |
Disable per-user .login_conf support due to incorrect merging of local and globaly settings. An alternative implementation will be developed.
Reported by: Przemyslaw Frasunek <venglin@freebsd.lublin.pl>
|
83516 |
15-Sep-2001 |
rwatson |
o Add a comment noting that the early setting of privileges for the purpose of NFS home directory and root directory processing fails to include additional groups. This doesn't impact the final credential, but does mean that users may be denied login even when additional groups might allow it.
|
81586 |
13-Aug-2001 |
ru |
Removed duplicate VCS ID tags, as per style(9).
|
81449 |
10-Aug-2001 |
ru |
mdoc(7) police: protect trailing full stops of abbreviations with a trailing zero-width space: `e.g.\&'.
|
80223 |
23-Jul-2001 |
ume |
Simplify IPv4 mapped IPv6 address handling.
Reviewed by: brian MFC after: 5 days
|
80206 |
23-Jul-2001 |
assar |
remove emalloc,ecalloc,erealloc,estrdup
|
80167 |
22-Jul-2001 |
assar |
add ecalloc, emalloc, erealloc, estrdup - versions of the e-less functions that exit instead of failing
|
80056 |
21-Jul-2001 |
brian |
Hint getaddrinfo() correctly if we're looking up a name that we got from an AF_INET6 address.
MFC after: 1 week
|
79754 |
15-Jul-2001 |
dd |
Remove whitespace at EOL.
|
79531 |
10-Jul-2001 |
ru |
mdoc(7) police: removed HISTORY info from the .Os call.
|
79454 |
09-Jul-2001 |
dd |
mdoc(7) police: remove extraneous .Pp before and/or after .Sh.
|
79452 |
09-Jul-2001 |
brian |
Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
|
78748 |
25-Jun-2001 |
dd |
Add RETURN VALUES and ERRORS sections.
|
78738 |
24-Jun-2001 |
dd |
Add a manual page for extattr_string_to_namespace and extattr_namespace_to_string.
Reviewed by: rwatson
|
76812 |
18-May-2001 |
ru |
Removed -I${.CURDIR}/.../sys from CFLAGS.
|
76787 |
18-May-2001 |
obrien |
Sort.
|
76786 |
18-May-2001 |
obrien |
Add the "prompt" and "passwd_prompt" fields to /etc/login.conf, which makes lgoin more like getty in its ability to be configured.
Submitted by: tlambert (code only)
|
75821 |
22-Apr-2001 |
dd |
Don't pass NULL to the %s format.
Reviewed by: kris
|
75670 |
18-Apr-2001 |
ru |
mdoc(7) police: normalize .Nd.
|
74870 |
27-Mar-2001 |
ru |
MAN[1-9] -> MAN.
|
74624 |
22-Mar-2001 |
rwatson |
o Slap some "_"'s in front of variable names relating to extattr functions, so as not to pollute application namespace.
Submitted by: bde
|
74436 |
19-Mar-2001 |
rwatson |
o Rename "namespace" argument to "attrnamespace" as namespace is a C++ reserved word.
Submitted by: jkh Obtained from: TrustedBSD Project
|
74435 |
19-Mar-2001 |
rwatson |
o Rename "namespace" argument to "attrnamespace" as namespace is a C++ reserved word, causing breakage when a C++ program included libutil.h This change will be propagated elsewhere shortly.
Submitted by: jkh Obtained from: TrustedBSD Project
|
74386 |
17-Mar-2001 |
brian |
Fix some further style nits
Pointed out by: bde
|
74288 |
15-Mar-2001 |
brian |
Actually commit the new version of trimdomain *blush*
Thanks for covering my blunder to: peter
|
74274 |
15-Mar-2001 |
rwatson |
o To support new EA interface with explicit namespaces, introduce two utility functions which convert between string namespace names and numeric constants used by the interface. Right now, two namespaces are supported, EXTATTR_NAMESPACE_SYSTEM ("system") and EXTATTR_NAMESPACE_USER ("user"). These functions are used by various userland EA utilities, rather than hard coding the routines all over the place.
Obtained from: TrustedBSD Project
|
74266 |
15-Mar-2001 |
peter |
It would help if trimdomain.c was actually committed. This is a stopgap world-unbreaker until Brian Somers commits the one he intended to.
Pointy Hat to: brian
|
74261 |
14-Mar-2001 |
brian |
Move trimdomain() into it's own source file and tidy things up a bit. Fix disorder in the Makefile.
Reviewed (mostly) by: bde
|
74260 |
14-Mar-2001 |
brian |
MAXHOSTNAMELEN includes space for the NUL Don't read past the end of the host passed to realhostname()
Not objected to by: freebsd-audit Interface disliked by: imp
|
74107 |
11-Mar-2001 |
markm |
Updates for Blowfish password hashing.
|
74068 |
10-Mar-2001 |
billf |
In theory it would be perfectly legal for a system administrator to
# cd /dev && ./MAKEDEV pty0 pty3 and/or # rm -rf /dev/ptyp0
and expect all programs that use openpty() to still try to find available ptys.
|
72089 |
06-Feb-2001 |
asmodai |
Fix typo: seperate -> separate.
Seperate does not exist in the english language.
Submitted to look at by: kris
|
72067 |
06-Feb-2001 |
bde |
Fixed prototype of logout() (const poisoning).
|
71895 |
01-Feb-2001 |
ru |
mdoc(7) police: split punctuation characters + misc fixes.
|
71753 |
28-Jan-2001 |
brian |
Call trimdomain properly for ip4 addresses.
PR: 24659 realhostname_sa() stuff submitted by: Jim.Pirzyk@disney.com
|
71097 |
16-Jan-2001 |
ru |
Prepare for mdoc(7)NG.
|
70544 |
31-Dec-2000 |
ghelmer |
In call to realloc, pass the number of bytes needed, not simply the number of login time structures.
Forward the name of the deny capability rather than hard-coding it in login_hostok.
|
70481 |
29-Dec-2000 |
ru |
Prepare for mdoc(7)NG.
|
69899 |
12-Dec-2000 |
ru |
mdoc(7) police: Now that .Fx macro is parsed, backout the 1.18 -> 1.20 and fix the .Fx issue the right way.
|
69156 |
25-Nov-2000 |
peter |
Fix a mangled $Id string
|
69051 |
22-Nov-2000 |
ru |
mdoc(7) police: Er macro usage cleanup.
|
68945 |
20-Nov-2000 |
ru |
mdoc(7) police: use the new features of the Nm macro.
|
68716 |
14-Nov-2000 |
ru |
Use Fx macro wherever possible.
|
68575 |
10-Nov-2000 |
ru |
Avoid use of direct troff requests in mdoc(7) manual pages.
|
68509 |
09-Nov-2000 |
murray |
Eliminate inconsistency where a value that contains only whitespace confuses the parser.
Approved by: jkh
|
68488 |
08-Nov-2000 |
murray |
Added PROPERTY_MAX_VALUE and PROPERTY_MAX_NAME defines to libutil.h so that applications know how large of a buffer they must allocate before calling property_find(). Also added a $FreeBSD$ tag while I'm here.
Approved by: jkh
|
67671 |
27-Oct-2000 |
green |
Fix problems people were having with large -O levels with GCC and getting libutil/libcrypt to work properly. I've determined that GCC thinks it can inline all functions, including weak-symboled ones, if it feels like it.
Create a new stub.c and move any stubs there to prevent inlining. Thanks to jdp and William S. Duncanson for helping me finally find the problem.
|
66558 |
02-Oct-2000 |
brian |
Correct uu_lock_txfr. I don't think this ever worked correctly.
|
66470 |
30-Sep-2000 |
green |
Document passwd_format further.
|
65431 |
04-Sep-2000 |
peter |
Constify the arg to logout(3). It is const-safe. (cosmetic: drop some "register" qualifications too.)
|
65353 |
02-Sep-2000 |
brian |
Move setproctitle() from libutil to libc (after a repo-copy) and bump __FreeBSD_version to 500012 to mark the occasion.
setproctitle() is prototyped in unistd.h as opposed to stdlib.h where OpenBSD and NetBSD have it.
Reviewed by: peter
|
65025 |
23-Aug-2000 |
asmodai |
Add weak symbol pragma for crypt_set_format().
Approved by: green
|
64990 |
23-Aug-2000 |
green |
Stick login_setcryptfmt() in its own file to make pulling in of -lcrypt only happen if truly necessary.
|
64918 |
22-Aug-2000 |
green |
Add working and easy crypt(3)-switching. Yes, we need a whole new API for crypt(3) by now. In any case:
Add crypt_set_format(3) + documentation to -lcrypt. Add login_setcryptfmt(3) + documentation to -lutil. Support for switching crypt formats in passwd(8). Support for switching crypt formats in pw(8).
The simple synopsis is: edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :)
Reviewed by: peter
|
64094 |
01-Aug-2000 |
ps |
If the format string passed to setproctitle begins with a '-' character, skip the program name when setting the process title. Ansified with extreme prejudice.
Reviewed by: peter
|
63164 |
14-Jul-2000 |
ume |
Sshd writes connected host into utmp directly. If the connection is via IPv6, the hostname is trimed due to the length of IPv6 address. This change saves it as possible. I have a grudge against the shortage of UT_HOSTSIZE.
|
63149 |
14-Jul-2000 |
sheldonh |
Make sbsize a size instead of a number. This allows the usual suffixes to be applied to the value given. This does not break installed /etc/login.conf files, since un-suffixed numbers are interpreted as they were before.
PR: 19750 Submitted by: Paul Herman <pherman@frenchfries.net>
|
62988 |
12-Jul-2000 |
kris |
Don't call warn() without a format string.
|
62685 |
06-Jul-2000 |
ache |
Better fix for .Fx macro
Submitted by: sheldonh
|
62659 |
06-Jul-2000 |
ache |
Fix .Fx usage (causing error diagnositc)
|
61184 |
02-Jun-2000 |
alfred |
document sbsize limit.
|
60870 |
24-May-2000 |
ume |
We should see the ai_canonname menber of the first addrinfo structure in the linked list. RFC2553 mentions only first.
Reviewed by: shin
|
60746 |
21-May-2000 |
hoek |
Fix a memory leak with lc->lc_cap in login_close().
PR: bin/17084
|
60258 |
09-May-2000 |
sheldonh |
Fix miscellaneous mdoc macro argument limit infringements.
PR: 18465 Reported by: Kazu TAKAMUNE <takamune@avrl.mei.co.jp>
|
59804 |
30-Apr-2000 |
nik |
Add xref to cap_mkdb(1).
PR: docs/17544 Submitted by: Christ J. Clark <cjc@cc942873-a.ewndsr1.nj.home.com>
|
59516 |
22-Apr-2000 |
phantom |
Introduce .Lb macro to libutil manpages Sort .Nm values in some manpages Remove explicit note about compiling with -lutil, it's implicitly declared by .Lb macro now.
|
58509 |
24-Mar-2000 |
mpp |
Fix some spelling errors.
|
58495 |
23-Mar-2000 |
ume |
Return IPv4 native address for IPv4 mapped IPv6 address, even if A RR is not found.
Reviewed by: shin
|
57789 |
07-Mar-2000 |
ume |
Since crypto/openssh/login.c was changed to use realhostname_sa(), when connecting via IPv6, hostname was not recorded to utmp anymore. Because, if hostname is longer than buffer size, getnameinfo() returns with ENI_MEMORY.
Reviewed by: shin Approved by: jkh
|
57686 |
02-Mar-2000 |
sheldonh |
Remove single-space hard sentence breaks. These degrade the quality of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
|
57197 |
14-Feb-2000 |
shin |
Update major version.
Now libutil depends on libc.so.4, so needs to update the major version. Without this, old binaries which use libutil and build with libc.so.3 will coredump on recent 4.0.
Solicited comment for cvs-committers and there seems to be no objection.
Approved by: jkh
|
57142 |
11-Feb-2000 |
nik |
Document mixpasswordcase here as well as in passwd.1
|
56692 |
27-Jan-2000 |
joe |
Historically file flags (schg, uschg, etc) have been converted from string to u_long and back using two functions, flags_to_string and string_to_flags, which co-existed with 'ls'. As time has progressed more and more other tools have used these private functions to manipulate the file flags.
Recently I moved these functions from /usr/src/bin/ls to libutil, but after some discussion with bde it's been decided that they really ought to go in libc.
There are two already existing libc functions for manipulating file modes: setmode and getmode. In keeping with these flags_to_string has been renamed getflags and string_to_flags to setflags.
The manual page could probably be improved upon ;)
|
56682 |
27-Jan-2000 |
shin |
Avoid core dump when ai_canonname is NULL. (Now this happens for numeric addrs, as getaddrinfo() 1.3 -> 1.4 change)
Reviewed by: Mark Huizer <xaa@timewasters.nl>
|
56661 |
27-Jan-2000 |
bde |
Use a long line instead splitting a line with backslash-newline in synopsis. My synopsis checker doesn't understand backslash-newline.
|
56626 |
26-Jan-2000 |
peter |
Use a more conventional copyright message.
|
56590 |
25-Jan-2000 |
shin |
several tcp apps IPv6 update -inetd -rshd -rlogind -telnetd -rsh -rlogin
Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
|
56281 |
19-Jan-2000 |
ru |
Do not set the default terminal type to "su", leave it empty.
PR: bin/5084 Reviewed by: asmodai, davidn, sef
|
56215 |
18-Jan-2000 |
chris |
Repair internal consistency: Change "login_cap_t * lc" to a more correct (and consistent) "login_cap_t *lc".
|
56207 |
18-Jan-2000 |
billf |
Add the "use -lutil" line to all functions that require it so people like Dan Papsian <bugg@bugg.strangled.net> don't anger wpaul and myself with silly linking errors.
Reviewed by: chris
|
56010 |
15-Jan-2000 |
shin |
Support v6 login.
|
55955 |
14-Jan-2000 |
rgrimes |
Replace beforeinstall target with new variables used by .mk system.
Reviewed by: marcel, and make world
|
55461 |
05-Jan-2000 |
bde |
Fixed missing include in synopsis.
Removed superfluous quoting of function name in .Fo macro. My synopsis checker doesn't understand it.
|
55270 |
30-Dec-1999 |
joe |
Moved flags_to_string and string_to_flags into libutil. It's used in many places nowadays.
|
55227 |
29-Dec-1999 |
peter |
Connect fparseln(3) for mailwrapper(8)
|
54948 |
21-Dec-1999 |
roberto |
Fix a bug where a pointer would be one character too far after putting a '\0' at the end of a string.
Submitted by: Martin Birgmeier <Martin.Birgmeier@aon.at>
|
54827 |
19-Dec-1999 |
roberto |
Rewriting of flags_to_string() and string_to_flags() to use an array.
PR: bin/3648 Submitted by: Martin Birgmeier <mbirg@austria.ds.philips.com>
|
54821 |
19-Dec-1999 |
peter |
This commit was generated by cvs2svn to compensate for changes in r54820, which included commits to RCS files with non-trunk default branches.
|
53297 |
17-Nov-1999 |
brian |
Make setproctitle(NULL) restore all of the original arguments (if it's able).
|
53239 |
16-Nov-1999 |
phk |
Introduce commandline caching in the kernel.
This fixes some nasty procfs problems for SMP, makes ps(1) run much faster, and makes ps(1) even less dependent on /proc which will aid chroot and jails alike.
To disable this facility and revert to previous behaviour: sysctl -w kern.ps_arg_cache_limit=0
For full details see the current@FreeBSD.org mail-archives.
|
52867 |
04-Nov-1999 |
jkoshy |
Link manual page for login_getpwclass(3) to login_cap(3).
PR: docs/14673 Submitted by: Andrew <andrew@ugh.net.au>
|
52071 |
09-Oct-1999 |
green |
This implements the RLIMIT_SBSIZE ("sbsize") administrative limits for userland. Currently, it can be enforced by login and csh. More shells supporting sbsize are welcome.
|
51518 |
21-Sep-1999 |
phantom |
mdoc(7)'fy
Reviewed by: mpp
|
51457 |
20-Sep-1999 |
phantom |
Correct spelling : ascii -> ASCII
PR: docs/13702 Submitted by: Stephen J. Roznowski <sjr@home.com> Reviewed by: mpp
|
50479 |
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
50476 |
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
50471 |
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
50000 |
18-Aug-1999 |
chris |
Fix a bunch of broken cross-references
|
49828 |
15-Aug-1999 |
mpp |
Various man page cleanup:
- Sort xrefs - FreeBSD.ORG -> FreeBSD.org - Be consistent with section names as outlines in mdoc(7) - Other misc mdoc cleanup.
PR: doc/13144 Submitted by: Alexy M. Zelkin <phantom@cris.net>
|
49751 |
14-Aug-1999 |
chris |
Bad reference of termios(3) changed to termios(4).
|
49746 |
14-Aug-1999 |
chris |
Bad reference to lstat(3) changed to lstat(2)
|
49696 |
13-Aug-1999 |
sheldonh |
Axe LOGIN_CAP_AUTH.
PR: 10115 Reported by: Gene Skonicki <gene@cif.rochester.edu> Requested by: jdp
|
48942 |
20-Jul-1999 |
nik |
Correct some grammar and style problems with this page.
Submitted by: Kris Kennaway <root@rebel.net.au>
|
48814 |
14-Jul-1999 |
nik |
Be a little clearer about login_getpwclass(3), and its penchant for looking up a record called "root".
PR: docs/12377 Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com>
|
48775 |
12-Jul-1999 |
sheldonh |
Fix commented out CFLAGS addition for LOGIN_CAP_AUTH, which was missing a make -D option.
PR: 12591 Submitted by: Craig Leres <leres@ee.lbl.gov>
|
48328 |
29-Jun-1999 |
pb |
Move call to umask(0) back into pw_util(), because the latter function is also used by chpass(1) and passwd(1).
|
48241 |
26-Jun-1999 |
pb |
Force umask to 077 (instead of 000) during the edit phase, to get secure permissions in case the user attempts to save something to a file of his own.
Move umask stuff out of pw_init() into main() for better visibility of overall umask tweaking logic.
PR: misc/11797
|
48232 |
26-Jun-1999 |
sheldonh |
Add -d option to vipw(8) to allow selection of an alternative directory for the password files.
PR: 2703 Submitted by: jmg
|
47449 |
24-May-1999 |
jb |
Remove the static declaration from the line[] variable to allow openpty() to be called from a threaded application.
|
47367 |
21-May-1999 |
jmz |
Chflags was clearing all flags supplied on the command line after a clearing flag like dump or noschg, etc.
PR: bin/10071 Submitted by: Andreas Klussmann <andreas@infosys.heitec.net>
|
47118 |
13-May-1999 |
ache |
fix potential memory overwrite in escape parsing
PR: 11687 Submitted by: Don Lewis <Don.Lewis@tsc.tdk.com>
|
46209 |
30-Apr-1999 |
hoek |
Change references from "passwordperiod" to "passwordtime", since "passwordtime" is what passwd(1) has actually been using. I suspect passwordperiod was the original intent. I can't figure-out which, if either, BSDi uses. If anyone knows...
|
46004 |
24-Apr-1999 |
ache |
oops, add pwd!=NULL check to previous fix
|
46003 |
24-Apr-1999 |
ache |
Switch to user UID/GID before checking/reading its ~/.login_conf - some NFSes have root read access disabled
|
46001 |
24-Apr-1999 |
ache |
add MLINKS for two functions used from login_auth.c comment out unused functions from login_auth.3
|
45505 |
09-Apr-1999 |
brian |
If given host.domain:nn[.nn], trimdomain() now reduces it to host:nn[.nn] (if the domain is the same as the local one).
|
45459 |
08-Apr-1999 |
brian |
bcopy -> memmove Suggested by: archie
|
45430 |
07-Apr-1999 |
brian |
Tidy up trimdomain() and document it. Don't truncate one byte short of the passed length.
|
45421 |
07-Apr-1999 |
brian |
Handle hostnames up to MAXHOSTNAMELEN-1 in length. Use bcopy() instead of strcpy() to handle potentially overlapping regions. Un-obscure/complicate some code.
|
45420 |
07-Apr-1999 |
brian |
Put parenthesis around sizeof args. Allow for host names up to MAXHOSTNAMELEN - 1 in length.
Prompted by: bde
|
45392 |
06-Apr-1999 |
brian |
Add realhostname() - a function to correctly lookup a name by address and ensure that the name resolves back to the original address.
|
44652 |
11-Mar-1999 |
brian |
Get the pid right if a stale lock file exists. PR: 10531 Submitted by: Lawrence D. Lopez <lopez@cisco.com>
|
44488 |
05-Mar-1999 |
bde |
Fixed bitrot in synopsis (some const poisoning had not reached here).
|
43920 |
12-Feb-1999 |
alex |
Removed occurrences of consecutive repeated words (such as "the the").
|
41876 |
16-Dec-1998 |
bde |
Declare setproctitle() as printf0-like.
|
41875 |
16-Dec-1998 |
bde |
Adjust for kern.ps_strings and PS_STRINGS not being a pointer. This is an unimprovement here. I thought it would be an improvement, as in libkvm, but here we can access the strings directly.
Use sysctlbyname() instead of sysctl() and trust it to give a nonzero address if it succeeds.
|
41711 |
13-Dec-1998 |
dillon |
oops. Fix indentation of the 'for' loop I just added.
|
41710 |
13-Dec-1998 |
dillon |
Handle the race condition where vipw may lock a password file which has just been replaced. After our lock succeeds we check if st_nlink is 0 and if it is we close the descriptor and retry our open/lock sequence.
|
41291 |
22-Nov-1998 |
jkh |
Better document the file format, add in support for nested {}'s in multi-line property values.
|
40538 |
20-Oct-1998 |
des |
Since vfork() was changed to fork(), we have to pass errno back from the child to the parent somehow.
PR: 8353 Submitted by: Andrew J. Korty <ajk@purdue.edu>
|
40346 |
14-Oct-1998 |
jkh |
correct prototype.
|
40301 |
13-Oct-1998 |
des |
Calls one or more of malloc(), warn(), err(), syslog(), execlp() or execvp() in the child branch of a vfork(). Changed to use fork() instead.
Some of these (mv, find, apply, xargs) might benefit greatly from being rewritten to use vfork() properly.
PR: Loosely related to bin/8252 Approved by: jkh and bde
|
40117 |
09-Oct-1998 |
jkh |
Now take stdio.h out of files that don't require it.
|
40110 |
09-Oct-1998 |
jkh |
Update docs to match interface change.
|
40109 |
09-Oct-1998 |
jkh |
o move path in libutil.h to paths.h o make property_read() take a fd instead to avoid stdio.h mess o update auth to new interface.
|
40108 |
09-Oct-1998 |
jkh |
Take the path spec back out.
|
40091 |
09-Oct-1998 |
jkh |
All these have to include stdio.h now.
|
40082 |
08-Oct-1998 |
jkh |
remove stdio.h include; I forgot Bruce's cardinal rule that header files shouldn't include other ones (which, unfortunately, is also a hellish rule since he broke interfaces like sysctl this way by requiring undocumented header files to be included just in order to be able to use them now - SIGH!).
|
40054 |
08-Oct-1998 |
jkh |
Add some rudimentary documentation for my new functions.
|
40050 |
08-Oct-1998 |
jkh |
Correct a build error that got past my build test somehow.
|
40040 |
07-Oct-1998 |
jkh |
Add a simple mechanism for reading property lists from files (which I'll convert sysinstall to use shortly) and a simple call which uses this mechanism to implement an /etc/auth.conf file. I'll let Mark Murray handle the format and checkin of the sample auth.conf file. Reviewed by: markm
|
39327 |
16-Sep-1998 |
imp |
Replace memory leaking instances of realloc with non-leaking reallocf. In some cases replace if (a == null) a = malloc(x); else a = realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is guaranteed to be the same thing.
I've been running these on my system here w/o ill effects for some time. However, the CTM-express is at part 6 of 34 for the CAM changes, so I've not been able to do a build world with the CAM in the tree with these changes. Shouldn't impact anything, but...
|
37947 |
29-Jul-1998 |
ache |
Print uid/gid as u_long per bde suggestion
|
37901 |
28-Jul-1998 |
ache |
cast arg to (long) to match format
|
36833 |
10-Jun-1998 |
brian |
Cast pid_t to int for sprintf. Pointed out by: Charlie Sorsby <crs@hgo.net>
|
36692 |
06-Jun-1998 |
jkoshy |
Spelling corrections.
PR: 6868 Submitted by: Josh Gilliam <josh@quick.net>
|
36660 |
05-Jun-1998 |
ache |
Add missing uu_lock_txfr() prototype
|
36607 |
03-Jun-1998 |
jb |
If using NetBSD syscalls the rtprio syscall doesn't exist, so just don't try to use it to set special priorities.
|
36559 |
01-Jun-1998 |
amurai |
Trim a domain part for wtmp as same as showed by "netstat -r". Here is a some example for avoiding a confusion.
It asssumes a logged host domain is "spec.co.jp". All example is longer than UT_HOSTNAMELEN value.
1) turbo.tama.spec.co.jp: 192.19.0.2 -> trubo.tama 2) turbo.tama.foo.co.jp : 192.19.0.2 -> 192.19.0.2 3) specgw.spec.co.jp : 202.32.13.1 -> specgw
Submitted by: Atsushi Murai <amurai@spec.co.jp>
|
36451 |
28-May-1998 |
brian |
Add uu_lock_txfr() to transfer ownership of a successful uu_lock() to another process.
|
36351 |
25-May-1998 |
steve |
Allow setting of idle or realtime processing priorities per login class.
PR: 6636 Submitted by: Jason Young <doogie@forbidden-donut.anet-stl.com>
|
35491 |
28-Apr-1998 |
dg |
Oops, revert part of a diff that wasn't supposed to have been committed.
|
35490 |
28-Apr-1998 |
dg |
Cache the results of the ps_strings sysctl so that it doesn't have to be redone for every call of setproctitle().
|
34822 |
23-Mar-1998 |
bde |
Fixed function types in synopsis.
Commented out docmentation of nonexistent authenticate() and auth_timesok(). authenticate() seems to be obsolete and auth_timesok() never existed in FreeBSD.
|
34669 |
19-Mar-1998 |
charnier |
.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq
|
33728 |
21-Feb-1998 |
fenner |
Change tty-related capability names to match the implementation ("ttys.", not "tty.").
|
33539 |
18-Feb-1998 |
jkh |
MF22: add login_auth.3 to man page list.
|
33347 |
14-Feb-1998 |
steve |
Correctly document h and m modifiers to the time format.
PR: 5739 Submitted by: Matthew Cashdollar <mattc@rfcnet.com>
|
32569 |
16-Jan-1998 |
bde |
Fixed bitrot in the prototype for logwtmp().
|
32361 |
09-Jan-1998 |
jb |
Make a couple of the stat flags dependent on the sys/stat.h header file that this source is compiled against. This source is referenced by install which is needed as a build tool and must be able to compile against NetBSD headers and libraries if we have a hope of supporting another architecture.
With this change, that's two working programs down and 3945 (?) to go. The other one was make, but that didn't need any changes to work under FreeBSD/Alpha. 8-)
|
30951 |
05-Nov-1997 |
steve |
Make the login_getclassbyname prototype match reality.
PR: 4838
|
30765 |
27-Oct-1997 |
charnier |
Statisize usage().
|
30196 |
07-Oct-1997 |
joerg |
Remove the claim that UUCP locking were not atomic. It is since revision 1.8 of uucplock.c.
|
30192 |
07-Oct-1997 |
obrien |
Add passwd(5) to "SEE ALSO".
ISSUES: An example and better explansion on how to specify a user's login class in /etc/master passwd is needed. (As I don't seem to be specifiying it right, I can't do it).
|
30113 |
05-Oct-1997 |
jkh |
Changes to support full make parallelism (-j<n>) in the world target. Reviewed by: <many different folks> Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
|
29988 |
29-Sep-1997 |
wosch |
Sort cross refereces in section SEE ALSO.
|
29980 |
29-Sep-1997 |
wosch |
Endless loop.
$ vipw [corrupt a line in editor, exit editor] pwd_mkdb: corrupted entry pwd_mkdb: at line #2 pwd_mkdb: /etc/pw.012585: Inappropriate file type or format re-edit the password file? [y]: n^D^D [hang]
|
29119 |
04-Sep-1997 |
pst |
The parameters to logwtmp should be const char's
|
28962 |
31-Aug-1997 |
brian |
Remove login_progok() Suggested by: guido
|
28839 |
27-Aug-1997 |
brian |
Add full support for determining if a user is restricted from running a given program.
|
28813 |
26-Aug-1997 |
brian |
Add prog.deny as a list capability for denying execution of certain programs.
|
28801 |
26-Aug-1997 |
bde |
-I${DESTDIR}/sys -> -I${.CURDIR}/../../sys.
|
28662 |
24-Aug-1997 |
joerg |
Cosmetic: distinguish in diag message between rebuilding and updating the database.
PR: 3397 Submitted by: taob@risc.org (Brian Tao)
|
28179 |
13-Aug-1997 |
steve |
Protect the copyright comments from reformatting by indent and make this compile -Wall clean like the Makefile suggests that it should. :)
Pointed out by: Bruce Evans <bde@zeta.org.au>
|
28040 |
10-Aug-1997 |
ache |
Implement canonical locking protocol Suggested by: joerg
|
27967 |
07-Aug-1997 |
steve |
Observe precedence set by Phillippe Charnier in adding an rcsid.
|
27958 |
07-Aug-1997 |
steve |
Remove #if(n)def BSD_4_4_LITE cruft and sccsid -> rcsid.
|
27920 |
05-Aug-1997 |
ache |
Improve weak locking by using flock()
|
27524 |
19-Jul-1997 |
davidn |
sleep() after sending 'nologin' file to ensure output is drained before disconnect.
|
27498 |
18-Jul-1997 |
asami |
Add appropriate ${DESTDIR} in front of absolute paths.
|
26694 |
16-Jun-1997 |
davidn |
Fix infinite loop. PR: 3878 Submitted by: roman@rpd.univ.kiev.ua
|
26621 |
13-Jun-1997 |
davidn |
Add "break" inadvertently removed in previous update. PR: 3820 Submitted by: Joseph Stein <joes@spiritone.com>
|
26360 |
02-Jun-1997 |
julian |
Submitted by: Whistle Communications (archie Cobbs)
These changes add the ability to specify that a UFS file/directory cannot be unlinked. This is basically a scaled back version of the IMMUTABLE flag. The reason is to allow an administrator to create a directory hierarchy that a group of users can arbitrarily add/delete files from, but that the hierarchy itself is safe from removal by them. If the NOUNLINK definition is set to 0 then this results in no change to what happens normally. (and results in identical binary (in the kernel)). It can be proven that if this bit is never set by the admin, no new behaviour is introduced.. Several "good idea" comments from reviewers plus one grumble about creeping featurism.
This code is in production in 2.2 based systems
|
25996 |
22-May-1997 |
tg |
Typo police.
|
25918 |
19-May-1997 |
peter |
Now I really understand the reason for the style.9 rule about not having visible type names in prototypes in user space headers. libutil.h generates warnings with -Wall over the use of "const char *ttyname". It's lucky it wasn't a #define conflict. Is a single '_' prefix acceptable? or does it need to be two?
|
25888 |
18-May-1997 |
davidn |
MF2.2: update login_cap api docs. PR: Reviewed by: Submitted by: Obtained from:
|
25829 |
15-May-1997 |
davidn |
For non-root uids, consider root-owned files also 'secure' unless otherwise disqualified.
|
25768 |
13-May-1997 |
asami |
Back out previous revision. Shlib version numbers are supposed to be bumped only 0.1 or 1.0 between releases. (See handbook.)
Note that if you have built world in -current in the last 48 hours or so, you should manually remove /usr/lib/libutil.so.2.3 before rebuilding world to cleanse your system.
|
25740 |
12-May-1997 |
brian |
Make uu_* const correct.
Suggested by: joerg
|
25704 |
11-May-1997 |
davidn |
Add #include <sys/types.h> in synopsis, now required for libutil.h.
|
25703 |
11-May-1997 |
davidn |
Bump shared lib version to 2.3.
Suggested by: bde
|
25702 |
11-May-1997 |
davidn |
MF2.2: bugfix in arrayize().
|
25670 |
10-May-1997 |
davidn |
Summary of login.conf support changes:
o Incorporated BSDI code and enhancements, better logging for error checking (which has been shown to be a problem, and is therefore justified, imho); also some minor things we were missing, including better quad_t math, which checks for under/overflows.
o setusercontext() now allows user resource limit overrides, but does this AFTER dropping root privs, to restrict the user to droping hard limits and set soft limits within the kernel's allowed user limits.
o umask() only set once, and only if requested.
o add _secure_path(), and use in login.conf to guard against symlinks etc. and non-root owned or non-user owned files being used. Derived from BSDI contributed code.
o revamped authentication code to BSDI's latest api, which includes deleting authenticate() and adding auth_check() and a few other functions. This is still marked as depecated in BSDI, but is included for completeness. No other source in the tree uses this anyway, so it is now bracketed with #ifdef LOGIN_CAP_AUTH which is by default not defined. Only auth_checknologin() and auth_cat() are actually used in module login_auth.c.
o AUTH_NONE definition removed (collided with other includes in the tree). [bde]
o BSDI's login_getclass() now accepts a char *classname parameter rather than struct passwd *pwd. We now do likewise, but added login_getpwclass() for (sort of) backwards compatiblity, namely because we handle root as a special case for the default class. This will require quite a few changes elsewhere in the source tree.
o We no longer pretend to support rlim_t as a long type.
o Revised code formatting to be more bsd-ish style.
|
25658 |
10-May-1997 |
davidn |
Move login_cap.h from src/include for easier maintenance with related files.
|
24992 |
17-Apr-1997 |
danny |
Fix punctuation: "it's" -> "its"
|
24886 |
13-Apr-1997 |
bde |
Fixed missing const in synopsis.
|
24533 |
02-Apr-1997 |
mpp |
Grammar police.
|
24531 |
02-Apr-1997 |
ache |
Add Id Reduce space for error bufer from 512 to 128: there is no such long strings can be returned from strerror()
|
24530 |
02-Apr-1997 |
ache |
Code space optimization in uu_lockerr()
|
24529 |
02-Apr-1997 |
ache |
Remove unused USE_PERROR define and syslog.h include Use snprintf instead of sprintf to avoid buffer overflows Use snprintf in uu_lockerr instead of lots of hardcoded constants and not null-terminated strncpy Return "" for OK and "device in use" for INUSE, it allows simple strcpy(buf, uu_lockerr(retcode)) without testing for special OK case (NULL was there) and obtaining meaningful result for INUSE ("" was there) without special testing for it too.
|
24497 |
01-Apr-1997 |
mpp |
MLINK uu_lockerr(3).
|
24496 |
01-Apr-1997 |
mpp |
Mdoc police.
|
24461 |
31-Mar-1997 |
brian |
Remove the syslog stuff, and allow various return values in uu_lock(). Add uu_lockerr() for turning the results of uu_lock into something printable. Remove bogus section in man page about race conditions allowing both processes to get the lock. Include libutil.h and use uu_lock() correctly where it should.
Suggested by: ache@freebsd.org
|
24417 |
30-Mar-1997 |
brian |
Move uucplock into libutil and create a manual page.
|
24016 |
19-Mar-1997 |
bde |
Fixed misquoted arg in synopsis.
|
23144 |
27-Feb-1997 |
ache |
"infinity" check was missed from login_getcapsize(), add it
One manifestation of this bug: all networking users have coredumpsize=0
|
22993 |
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
22988 |
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
22541 |
10-Feb-1997 |
davidn |
Obsolete fgetline() -> fgetln(); and chop off newline if necessary.
|
22280 |
05-Feb-1997 |
asami |
1MB is 1048576 bytes, not 1038476 bytes. (I can see that the original committer wasn't using the MicroSlop Natural keyboard though! :)
|
22111 |
30-Jan-1997 |
davidn |
Fix free()ing block twice, remove unused function.
|
22088 |
29-Jan-1997 |
davidn |
Fix typo .->, for default separators in login_getcaplist().
|
22087 |
29-Jan-1997 |
davidn |
Completed fixes with login_getcapsize().
|
22086 |
29-Jan-1997 |
davidn |
Added -Wall to CFLAGS, cleaned up (all avoidable) warnings.
|
22085 |
29-Jan-1997 |
davidn |
1) Fixed bug in free()ing internal string/array where allocated size not reset to 0 causing NULL dereference on call after login_close(). 2) Modify login_capsize() behaviour to match manpage, allow concatenated sizes; ie. 10m500k
|
22084 |
29-Jan-1997 |
davidn |
#include <sys/stat.h> for umask() prototype.
|
21907 |
20-Jan-1997 |
wosch |
Sort cross references.
|
21673 |
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
21641 |
13-Jan-1997 |
peter |
Bump libutil.so version (2.1 -> 2.2) since a whole heap of new functions were added with the login class stuff. This is needed since libutil.so.2.1 is what is used in RELENG_2_2 and well into the release cycle. We only bump once per release cycle as needed.
|
21452 |
09-Jan-1997 |
mpp |
Minor mdoc style fixes.
|
21419 |
08-Jan-1997 |
mpp |
Man page police.
|
21402 |
07-Jan-1997 |
davidn |
Various bugfixes.
|
21400 |
07-Jan-1997 |
davidn |
Consistency check: refs to ~/.login.conf should be ~/.login_conf.
|
21399 |
07-Jan-1997 |
davidn |
Commit the right version this time. :-)
|
21398 |
07-Jan-1997 |
davidn |
Fix for login_getclass(NULL) case.
|
21332 |
05-Jan-1997 |
davidn |
Fix typos pointed out by bde (thanks!).
|
21329 |
05-Jan-1997 |
bde |
Don't depend only <stdio.h> bogusly including <sys/types.h>. (<sys/types.h> is a prerequisite for <login_cap.h> mainly because the latter wants to typedef rlim_t. rlim_t is typedefed in <sys/types.h> in NetBSD.)
|
21316 |
05-Jan-1997 |
davidn |
Add missing manpage for login.conf.
|
21288 |
04-Jan-1997 |
davidn |
Library functions relating to the login class capabilities database, including manpages. See also login_cap.h.
|
21153 |
01-Jan-1997 |
alex |
Grammatical changes.
Reviewed by: joerg
|
21111 |
30-Dec-1996 |
mpp |
Spelling/mdoc police.
|
21026 |
29-Dec-1996 |
joerg |
Finally document the interfaces found in libutil. While being here, also add the missing declaration of forkpty() to libutil.h.
Btw., the calling interface for login(3) is crude. Some better abstraction is needed, perhaps similar to logwtmp(3).
2.2 candidate, but i'll wait for the spelling police first. :)
|
20417 |
14-Dec-1996 |
steve |
Merge Lite2 mods, and -Wall cleaning. undelete(2) cruft not yet implemented is protected by a define (BSD4_4_LITE) that should be removed when this call is supported by the kernel.
|
17798 |
23-Aug-1996 |
mpp |
Some minor man page cleanup.
|
17141 |
12-Jul-1996 |
jkh |
General -Wall warning cleanup, part I. Submitted-By: Kent Vander Velden <graphix@iastate.edu>
|
16876 |
01-Jul-1996 |
guido |
Implement incremental passwd database updates. This is done by ading a '-u' option to pwd_mkdb and adding this option to utilities invoking it. Further, the filling of both the secure and insecure databases has been merged into one loop giving also a performance improvemnet. Note that I did *not* change the adduser command. I don't read perl (it is a write only language anyway). The change will drastically improve performance for passwd and friends with large passwd files. Vipw's performance won't change. In order to do that some kind of diff should be made between the old and new master.passwd and depending the amount of changes, an incremental or complete update of the databases should be agreed upon.
|
16432 |
17-Jun-1996 |
ache |
If hostname > UT_HOSTSIZE, use its numeric address instead to keep valid entries into utmp and wtmp
|
14236 |
24-Feb-1996 |
peter |
If the two recently added sysctl variables exist, use those rather than the statically compiled PS_STRINGS and USRSTACK variables. This prevents programs using setproctitle from coredumping if the kernel VM is increased, and stops libkvm users (w, ps, etc) from needing to be recompiled if only the VM layout changes.
|
13754 |
30-Jan-1996 |
mpp |
Another round of spelling fixes.
|
13137 |
01-Jan-1996 |
peter |
Bump libutil revision after recent addition of setproctitle().
Install (optional) libutil.h with prototypes for the functions and document this in the man page.
minor cleanups to the various routines, include the prototype file, declare return codes etc.
|
13039 |
26-Dec-1995 |
peter |
Bring in an initial version of setproctitle().. This is intended to replace the dozen other various hacks in the code that do all sorts of crude things including spamming the envrionment strings with the new argv string.
This version is mainly inspired by the sendmail version, with a couple of ideas taken from the NetBSD implementation as well.
|
11681 |
22-Oct-1995 |
bde |
Update to 4.4lite2 (clean up includes; initialize the name of the master pty correctly (it was broken for calls to openpty() after the first successful one)). Obtained from: 4.4lite2
|
10048 |
13-Aug-1995 |
wpaul |
Small NIS tweak: frob pw_error() a little so that it can say either 'NIS information unchanged' or '/etc/master.passwd unchanged' depending on which was is being modified (conditional on -DYP).
This is to save me the trouble of writing a whole other error routine (nis_error()?) for the upcoming changes to passwd and chpass.
|
8870 |
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
8857 |
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
6972 |
09-Mar-1995 |
ache |
Fix suspended vipw hangs Obtained from: NetBSD
|
6264 |
09-Feb-1995 |
jkh |
Support for >32 PTYs. Submitted by: Heikki Suonsivu <hsu@cs.hut.fi>
|
3044 |
24-Sep-1994 |
dg |
Added $Id$
|
1574 |
27-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1573, which included commits to RCS files with non-trunk default branches.
|
1556 |
26-May-1994 |
rgrimes |
BSD 4.4 Lite bin Sources
|
1553 |
26-May-1994 |
rgrimes |
BSD 4.4 Lite usr.sbin Sources
|