mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
We do not pass apparmor_profile from the front-end to the policy.
There is no command line option to specify a profile, it is only passed from the policy to the front-end.
This commit is contained in:
parent
720a1450e7
commit
43ffe34ab4
@ -333,14 +333,6 @@ sudoers_policy_deserialize_info(struct sudoers_context *ctx, void *v,
|
||||
goto oom;
|
||||
continue;
|
||||
}
|
||||
if (MATCHES(*cur, "apparmor_profile=")) {
|
||||
CHECK(*cur, "apparmor_profile=");
|
||||
free(ctx->runas.apparmor_profile);
|
||||
ctx->runas.apparmor_profile = strdup(*cur + sizeof("apparmor_profile=") - 1);
|
||||
if (ctx->runas.apparmor_profile == NULL)
|
||||
goto oom;
|
||||
continue;
|
||||
}
|
||||
#ifdef HAVE_BSD_AUTH_H
|
||||
if (MATCHES(*cur, "bsdauth_type=")) {
|
||||
CHECK(*cur, "bsdauth_type=");
|
||||
|
@ -85,7 +85,6 @@ static struct sudo_settings sudo_settings[] = {
|
||||
{ "askpass" },
|
||||
{ "intercept_setid" },
|
||||
{ "intercept_ptrace" },
|
||||
{ "apparmor_profile" },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
|
@ -105,7 +105,6 @@
|
||||
#define ARG_ASKPASS 26
|
||||
#define ARG_INTERCEPT_SETID 27
|
||||
#define ARG_INTERCEPT_PTRACE 28
|
||||
#define ARG_APPARMOR_PROFILE 29
|
||||
|
||||
/*
|
||||
* Flags for tgetpass()
|
||||
|
Loading…
x
Reference in New Issue
Block a user