aboutsummaryrefslogtreecommitdiff
path: root/lib/libugidfw
Commit message (Collapse)AuthorAgeFilesLines
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-165-10/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-162-4/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-122-2/+2
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Deduplicate fsid comparisonsRyan Moeller2020-05-211-3/+2
| | | | | | | | | | | | | | | | Comparing fsid_t objects requires internal knowledge of the fsid structure and yet this is duplicated across a number of places in the code. Simplify by creating a fsidcmp function (macro). Reviewed by: mjg, rmacklem Approved by: mav (mentor) MFC after: 1 week Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D24749 Notes: svn path=/head/; revision=361313
* Update Makefile.depend filesSimon J. Gerraty2019-12-111-1/+0
| | | | | | | | | | | | | Update a bunch of Makefile.depend files as a result of adding Makefile.depend.options files Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22494 Notes: svn path=/head/; revision=355617
* pkgbase: Create a FreeBSD-utilities package and make it the default oneEmmanuel Vadot2019-09-051-1/+0
| | | | | | | | | | | | | The default package use to be FreeBSD-runtime but it should only contain binaries and libs enough to boot to single user and repair the system, it is also very handy to have a package that can be tranform to a small mfsroot. So create a new package named FreeBSD-utilities and make it the default one. Also move a few binaries and lib into this package when it make sense. Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D21506 Notes: svn path=/head/; revision=351858
* Allow jail names (not just IDs) to be specified for: cpuset(1), ipfw(8),Jamie Gritton2018-07-031-8/+35
| | | | | | | | | | | | | sockstat(1), ugidfw(8) These are the last of the jail-aware userland utilities that didn't work with names. PR: 229266 MFC after: 3 days Differential Revision: D16047 Notes: svn path=/head/; revision=335921
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-262-0/+4
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326219
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Clean up trailing whitespaceEnji Cooper2017-10-232-4/+4
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=324929
* Remove dead storesEnji Cooper2017-10-231-64/+50
| | | | | | | | | | | The return value of various snprintf calls was stored in `len` and not used in many functions. MFC after: 1 week Reported by: clang-scanbuild Notes: svn path=/head/; revision=324928
* First pass through library packaging.Glen Barber2016-02-041-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295278
* META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.Bryan Drewery2015-11-251-1/+0
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=291307
* Fix 'ugidfw remove' after r284251 incorrectly changed it.Bryan Drewery2015-09-291-1/+1
| | | | | | | The sysctl_rule() node removes entries when given a newptr and newlen == 0. Notes: svn path=/head/; revision=288389
* Set some internal helpers as static and initialize few variables to silenceMarcelo Araujo2015-06-242-10/+11
| | | | | | | | | | | | | | | CLANG WARNINGS. BUMP SHLIB_MAJOR version as the ABI potentially changed. Also run an 'exp run' to double check if any external project are using those functions. Thanks antoine@. PR: 200807 Differential Revision: D2775 Reviewed by: kib, ngie Notes: svn path=/head/; revision=284745
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Updated/new Makefile.dependSimon J. Gerraty2012-11-081-0/+3
| | | | | | | | Notes: svn path=/projects/bmake/; revision=242788
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+16
| | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | Remove unnecessary variable and fix the usage of sysctl(3).Marcelo Araujo2015-06-111-7/+5
| | | | | | | | | | | | | | | | Differential Revision: D2733 Reviewed by: ngie, kib Notes: svn path=/head/; revision=284251
* | Remove unused variables and silence clang warnings.Marcelo Araujo2015-06-041-4/+2
|/ | | | | | | | Differential Revision: D2686 Reviewed by: rodrigc Notes: svn path=/head/; revision=283974
* Quiet clang warnings by using string literal format strings.Ed Maste2011-01-041-2/+2
| | | | Notes: svn path=/head/; revision=216953
* mdoc: order prologue macros consistently by Dd/Dt/OsUlrich Spörlein2010-04-145-5/+5
| | | | | | | | | | | 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) Notes: svn path=/head/; revision=206622
* Build lib/ with WARNS=6 by default.Ed Schouten2010-01-021-0/+2
| | | | | | | | | | | | 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. Notes: svn path=/head/; revision=201381
* Remove an unused variable.Ed Schouten2009-12-311-1/+0
| | | | Notes: svn path=/head/; revision=201321
* Bump the version of all non-symbol-versioned shared libraries inKen Smith2009-07-191-1/+1
| | | | | | | | | | | 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) Notes: svn path=/head/; revision=195767
* Bump library versions in preparation for 7.0.Daniel Eischen2007-05-211-1/+1
| | | | | | | Ok'd by: kan Notes: svn path=/head/; revision=169807
* Add some new options to mac_bsdestended. We can now match on:David Malone2006-04-233-180/+729
| | | | | | | | | | | | | | | | | | | | | | | | | | subject: ranges of uid, ranges of gid, jail id objects: ranges of uid, ranges of gid, filesystem, object is suid, object is sgid, object matches subject uid/gid object type We can also negate individual conditions. The ruleset language is a superset of the previous language, so old rules should continue to work. These changes require a change to the API between libugidfw and the mac_bsdextended module. Add a version number, so we can tell if we're running mismatched versions. Update man pages to reflect changes, add extra test cases to test_ugidfw.c and add a shell script that checks that the the module seems to do what we expect. Suggestions from: rwatson, trhodes Reviewed by: trhodes MFC after: 2 months Notes: svn path=/head/; revision=157986
* Bump the shared library version number of all libraries that have notKen Smith2005-07-221-1/+1
| | | | | | | | | | been bumped since RELENG_5. Reviewed by: ru Approved by: re (not needed for commit check but in principle...) Notes: svn path=/head/; revision=148297
* Fix two typos in comments.Tom Rhodes2005-04-231-2/+2
| | | | Notes: svn path=/head/; revision=145432
* When parsing the second {uid,gid} in an identity phrase for ugidfw,Robert Watson2005-04-161-13/+25
| | | | | | | | | | | check the password or group database before attempting to parse as an integer, as is done for the first {uid,gid} in an identity phrase. Obtained from: TrustedBSD Project Sponsored by: SPAWAR, SPARTA Notes: svn path=/head/; revision=145140
* In practice, you need to include <sys/types.h> andRobert Watson2005-04-161-0/+2
| | | | | | | | | | <security/mac_bsdextended/mac_bsdextended.h> in order to include <ugidfw.h>, so document that. MFC after: 3 days Notes: svn path=/head/; revision=145139
* Fix typo - link for bsde_add_rule(3) manual page was not created.Pawel Jakub Dawidek2005-03-281-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=144212
* Properly return rule number.Pawel Jakub Dawidek2005-03-281-1/+1
| | | | | | | | | Submitted by: Wojciech A. Koszek PR: bin/79292 MFC after: 1 week Notes: svn path=/head/; revision=144210
* Modify libugidfw(3) to use MBI_* permission flags from mac_bsdextended.hRobert Watson2004-10-211-13/+12
| | | | | | | | | | instead of using the V* permission flags from vnode.h. Remove include of vnode.h. Requested by: phk Notes: svn path=/head/; revision=136740
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-025-5/+10
| | | | Notes: svn path=/head/; revision=131504
* Markup, grammar, punctuation.Ruslan Ermilov2004-07-012-2/+4
| | | | Notes: svn path=/head/; revision=131421
* Fixed misspellings of 0 as NULL.Bruce Evans2004-03-111-3/+2
| | | | Notes: svn path=/head/; revision=126835
* Add bsde_add_rule(), which is similar to bsde_set_rule() except thatRobert Watson2004-02-255-4/+79
| | | | | | | | | | | the caller does not specify the rule number -- instead, the kernel module is probed for the next available rule, which is then used. Obtained from: TrustedBSD Project Sponsored by: DARPA, McAfee Research Notes: svn path=/head/; revision=126217
* Assorted mdoc(7) fixes.Ruslan Ermilov2003-06-015-74/+91
| | | | Notes: svn path=/head/; revision=115633
* Correct a couple small typos.Chris Costello2003-01-071-2/+2
| | | | | | | Submitted by: Attila Nagy <bra@fsn.hu> Notes: svn path=/head/; revision=108878
* Document the file system firewall interface library functions.Chris Costello2003-01-076-0/+515
| | | | | | | Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=108873
* License and blurb update authorized by Network Associates.Robert Watson2002-11-072-14/+8
| | | | Notes: svn path=/head/; revision=106573
* Zap now-unused SHLIB_MINORPeter Wemm2002-09-281-1/+0
| | | | Notes: svn path=/head/; revision=104073