aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/setfmac
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-162-4/+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-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | 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
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* fts_read: Handle error from a NULL return better.Bryan Drewery2020-12-081-1/+3
| | | | | | | | | | | | | | | | | | | | This is addressing cases such as fts_read(3) encountering an [EIO] from fchdir(2) when FTS_NOCHDIR is not set. That would otherwise be seen as a successful traversal in some of these cases while silently discarding expected work. As noted in r264201, fts_read() does not set errno to 0 on a successful EOF so it needs to be set before calling it. Otherwise we might see a random error from one of the iterations. gzip is ignoring most errors and could be improved separately. Reviewed by: vangyzen Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D27184 Notes: svn path=/head/; revision=368467
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified 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. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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/+0
| | | | | | | | 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
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
|/ | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* mdoc: order prologue macros consistently by Dd/Dt/OsUlrich Spörlein2010-04-141-1/+1
| | | | | | | | | | | 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
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-2/+0
| | | | Notes: svn path=/head/; revision=201390
* An average consumer of fts(3) that avoids keeping pointers to oldYaroslav Tykhiy2008-01-291-13/+7
| | | | | | | | | | | FTSENTs and uses only what fts_read() has just returned can rely on fts_path being NUL-terminated. Under these conditions, a plain vanilla "%s" format can be safely used to printf an fts_path. OK'ed by: rwatson Notes: svn path=/head/; revision=175796
* fts_pathlen is now a size_t rather than an int so a cast is needed.John Birrell2008-01-271-6/+6
| | | | | | | | I'm not sure why warn() and err() string formatted variables need to be right-justified. Notes: svn path=/head/; revision=175704
* Eliminate duplicate header files.Kevin Lo2007-02-091-2/+0
| | | | Notes: svn path=/head/; revision=166582
* Remove unnecessary SRCS= where could be guessed directly by ourXin LI2005-01-271-1/+0
| | | | | | | | | bsd.*.mk infrasture. Obtained from: ru Notes: svn path=/head/; revision=140909
* WARNS?=6 cleanup for [gs]et[fp]mac:Xin LI2005-01-272-4/+4
| | | | | | | | | | | | | | - Constify structure members that should not be changed during process. - Apply static where needed - signed/unsigned madness - Bump WARNS?= levels from 2 to 6 (this is a diff reduction for a subsequent commit against these Makefile's) Notes: svn path=/head/; revision=140907
* Sort sections.Ruslan Ermilov2005-01-181-9/+9
| | | | Notes: svn path=/head/; revision=140442
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+2
| | | | Notes: svn path=/head/; revision=131500
* Add "-q" argument to setfmac and setfsmac to allow the patient butRobert Watson2004-02-183-13/+27
| | | | | | | exhausted reader not to see non-fatal warnings. Notes: svn path=/head/; revision=125959
* Mostly fixed the SYNOPSIS.Ruslan Ermilov2003-05-311-12/+14
| | | | Notes: svn path=/head/; revision=115483
* style.Makefile(5)David E. O'Brien2003-04-041-2/+1
| | | | Notes: svn path=/head/; revision=113091
* Add a sample specfile listing to FILES.Chris Costello2003-03-261-0/+8
| | | | | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=112690
* Break setfmac.8 into two actual man pages, and reword bits of theChris Costello2003-03-133-66/+120
| | | | | | | | | | setfsmac(8) documentation. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=112208
* Cross-reference mac(4).Chris Costello2003-01-151-0/+1
| | | | | | | Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=109276
* Account for fts(3)'s FTS_SLNONE case for symbolic links which haveBrian Feldman2002-12-121-0/+1
| | | | | | | | | | | a nonexistant target, in addition to the FTS_SL previously, so e.g. setfmac -h sebsd/system_u:object_r:malloc_conf_t /etc/malloc.conf succeeds. Approved by: re Notes: svn path=/head/; revision=107794
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-2/+2
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* mdoc(7) police: Added the missing .Os call; it's not strictlyRuslan Ermilov2002-12-111-0/+1
| | | | | | | | | | necessary nowadays, but is documented as "required", and may become so again in the future. Approved by: re Notes: svn path=/head/; revision=107744
* mdoc(7) police: nit.Ruslan Ermilov2002-12-041-1/+1
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107584
* Mdoc markup and language fixes.Robert Watson2002-12-032-9/+14
| | | | | | | | | | Submitted by: ru Approved by: re (jhb) Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=107550
* Cast argument to (long), missed in prior pass.Robert Watson2002-12-021-1/+1
| | | | | | | | Approved by: re Submitted by: marcel Notes: svn path=/head/; revision=107514
* Fix 32-bit/64-bit bug in format string.Robert Watson2002-12-021-1/+1
| | | | | | | | | Approved by: re Submitted by: marcel Pointy hat to: green Notes: svn path=/head/; revision=107513
* Add support for -R for file relabel operations.Robert Watson2002-12-023-47/+508
| | | | | | | | | | | | | | | Add 'setfsmac' link, which permits labels to be provided in a label specification file, making it easier to provide initial file system labeling specifications. This is used by the new mac_lomac to provide initial system labeling and policy, and by sebsd, the port of SELinux FLASK/TE to FreeBSD. Approved by: re (jhb) Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=107489
* In general, prefer WARNS to CFLAGS+=-Wall. Tend towards a moreRobert Watson2002-12-011-2/+4
| | | | | | | | | | BSD-esque Makefile style. Submitted by: obrien Approved by: re Notes: svn path=/head/; revision=107473
* mdoc(7) police: sweep.Ruslan Ermilov2002-11-291-7/+6
| | | | Notes: svn path=/head/; revision=107391
* Introduce simple command line tools to manage MAC labels on processes andRobert Watson2002-10-233-0/+163
files. Basically wrappers for mac_{get,set}_{file,link,pid,proc}(3). Man pages to be updated shortly. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=105756