summaryrefslogtreecommitdiffstats
path: root/usr.sbin/setfmac/setfmac.c
Commit message (Collapse)AuthorAgeFilesLines
* An average consumer of fts(3) that avoids keeping pointers to oldyar2008-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
* fts_pathlen is now a size_t rather than an int so a cast is needed.jb2008-01-271-6/+6
| | | | | I'm not sure why warn() and err() string formatted variables need to be right-justified.
* Eliminate duplicate header files.kevlo2007-02-091-2/+0
|
* WARNS?=6 cleanup for [gs]et[fp]mac:delphij2005-01-271-3/+3
| | | | | | | | | | | - 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)
* Add "-q" argument to setfmac and setfsmac to allow the patient butrwatson2004-02-181-7/+17
| | | | exhausted reader not to see non-fatal warnings.
* Account for fts(3)'s FTS_SLNONE case for symbolic links which havegreen2002-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
* Mdoc markup and language fixes.rwatson2002-12-031-2/+2
| | | | | | | Submitted by: ru Approved by: re (jhb) Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Cast argument to (long), missed in prior pass.rwatson2002-12-021-1/+1
| | | | | Approved by: re Submitted by: marcel
* Fix 32-bit/64-bit bug in format string.rwatson2002-12-021-1/+1
| | | | | | Approved by: re Submitted by: marcel Pointy hat to: green
* Add support for -R for file relabel operations.rwatson2002-12-021-39/+431
| | | | | | | | | | | | 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
* Introduce simple command line tools to manage MAC labels on processes andrwatson2002-10-231-0/+103
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
OpenPOWER on IntegriCloud