Project

General

Profile

Feature #8015

ppriv should support quering for specific privileges

Added by Alexander Pyhalov almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2017-03-30
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Currently there's no elegant way to find out from shell if some privilege is available for the process.
From man page:

/usr/bin/ppriv -q [-f {+-}{ADMPTUX}] [privilege-specification]
...
–q

    Tests whether privileges are in the effective set and whether flags are set or non-set. The programs exits successfully when all tests are fullfilled.

Also available in: Atom PDF