core: improve the logic that implies no new privileges

The no_new_privileged_set variable is not used any more since commit
9b232d3241 that fixed another thing. So remove it. Also no
need to check if we are under user manager, remove that part too.
This commit is contained in:
Djalal Harouni
2016-11-15 15:04:31 +01:00
parent 46b6025a88
commit c92e8afebd
4 changed files with 2 additions and 11 deletions
-1
View File
@@ -216,7 +216,6 @@ struct ExecContext {
bool nice_set:1;
bool ioprio_set:1;
bool cpu_sched_set:1;
bool no_new_privileges_set:1;
};
static inline bool exec_context_restrict_namespaces_set(const ExecContext *c) {