Commit 9b306795 authored by John Johansen's avatar John Johansen Committed by Tim Gardner

UBUNTU: SAUCE: Revert: fix: only allow a single threaded process to ...

Revert the enforcement of only a single thread tasks using change_onexec.
While this change prevents applications from using change_onexec in
a potentially broken way (it can be done right but the application code
using it needs to be carefully audited), it does restrict historically
allowed behavior. Specifically this change is causes docker to fail, and
needs to be reverted until it can be selectively applied with policy
changes.

BugLink: http://bugs.launchpad.net/bugs/1371310Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
Acked-by: default avatarStefan Bader <stefan.bader@canonical.com>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent 6bfc18ae
...@@ -818,13 +818,6 @@ int aa_change_profile(const char *ns_name, const char *hname, bool onexec, ...@@ -818,13 +818,6 @@ int aa_change_profile(const char *ns_name, const char *hname, bool onexec,
if (error) if (error)
goto audit; goto audit;
if (onexec && !current_is_single_threaded()) {
info = "not a single threaded task";
error = -EACCES;
goto audit;
}
if (permtest) if (permtest)
goto audit; goto audit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment