Prevent un-init user namespace from generating lots of skb. Signed-off-by: Gao feng <gaofeng@xxxxxxxxxxxxxx> --- kernel/audit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/audit.c b/kernel/audit.c index 79a8b8e..297ac6e 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -303,6 +303,9 @@ static int audit_set_rate_limit(int limit) static int audit_set_backlog_limit(int limit) { + if (current_user_ns() != &init_user_ns) + return -EPERM; + return audit_do_config_change("audit_backlog_limit", &audit_backlog_limit, limit); } -- 1.8.1.4 _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/containers