aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/setfmac
Commit message (Collapse)AuthorAgeFilesLines
* 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