summaryrefslogtreecommitdiffstats
path: root/sys-utils/setpriv.c
Commit message (Collapse)AuthorAgeFilesLines
* setpriv: Fix --apparmor-profileAndy Lutomirski2014-02-101-2/+2
| | | | | | | | | | | | | | | There were two bugs. First, trying to access /proc/self/attr/exec with O_CREAT | O_EXCL has no chance of working. Second, it turns out that the correct command to send is "exec", not "changeprofile". Of course, there was no way to know this until: commit 3eea57c26e49a5add4c053a031cc2a1977b7c48e Author: John Johansen <john.johansen@canonical.com> Date: Wed Feb 27 03:44:40 2013 -0800 apparmor: fix setprocattr arg processing for onexec Signed-off-by: Andy Lutomirski <luto@amacapital.net>
* setpriv: simplify usage()Karel Zak2013-11-191-2/+2
| | | | | | | Let's keep usage() simple and details in the man page. The current brief description in usage() seems confusing for some users. Signed-off-by: Karel Zak <kzak@redhat.com>
* setpriv: use LC_ALLKarel Zak2013-10-181-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* textual: standardize some "cannot read" and "seek failed" error messagesBenno Schulenberg2013-10-091-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* setpriv: check writing to a file descriptor was successfulSami Kerola2013-04-261-1/+3
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* setpriv: check writing to a file was successfulSami Kerola2013-04-261-2/+3
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* setpriv: allow login and group name option argumentsSami Kerola2013-04-261-12/+30
| | | | | | For an average user names are easier to use than uid and gid numbers. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* Fix various typosYuri Chornoivan2013-04-261-1/+1
|
* setpriv: Fix an error message typoAndy Lutomirski2013-02-061-1/+1
| | | | Signed-off-by: Andy Lutomirski <luto@amacapital.net>
* setpriv: move paths to pathnames.hKarel Zak2013-02-051-17/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* setpriv: run a program with different Linux privilege settingsAndy Lutomirski2013-02-051-0/+814
This new command can set no_new_privs, uid, gid, groups, securebits, inheritable caps, the cap bounding set, securebits, and selinux and apparmor labels. [kerolasa@iki.fi: a lot of small adjustment making the command to be good fit to util-linux project] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Andy Lutomirski <luto@amacapital.net>