1
1
/* chcon -- change security context of files
2
Copyright (C) 2005-2011 Free Software Foundation, Inc.
2
Copyright (C) 2005-2012 Free Software Foundation, Inc.
4
4
This program is free software: you can redistribute it and/or modify
5
5
it under the terms of the GNU General Public License as published by
46
46
/* Level of verbosity. */
47
47
static bool verbose;
49
/* Pointer to the device and inode numbers of `/', when --recursive.
49
/* Pointer to the device and inode numbers of '/', when --recursive.
51
51
static struct dev_ino *root_dev_ino;
359
358
Change the security context of each FILE to CONTEXT.\n\
360
359
With --reference, change the security context of each FILE to that of RFILE.\n\
363
--dereference affect the referent of each symbolic link (this is\n\
364
the default), rather than the symbolic link itself\n\
362
365
-h, --no-dereference affect symbolic links instead of any referenced file\n\
368
-u, --user=USER set user USER in the target security context\n\
369
-r, --role=ROLE set role ROLE in the target security context\n\
370
-t, --type=TYPE set type TYPE in the target security context\n\
371
-l, --range=RANGE set range RANGE in the target security context\n\
365
374
--reference=RFILE use RFILE's security context rather than specifying\n\
366
375
a CONTEXT value\n\
367
378
-R, --recursive operate on files and directories recursively\n\
368
381
-v, --verbose output a diagnostic for every file processed\n\
371
-u, --user=USER set user USER in the target security context\n\
372
-r, --role=ROLE set role ROLE in the target security context\n\
373
-t, --type=TYPE set type TYPE in the target security context\n\
374
-l, --range=RANGE set range RANGE in the target security context\n\
378
385
The following options modify how a hierarchy is traversed when the -R\n\
379
386
option is also specified. If more than one is specified, only the final\n\
380
387
one takes effect.\n\