From 732134bd968bd83cbc817dcf3bd351e4d4a337cb Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Tue, 25 Jun 2024 20:11:24 +0100 Subject: [PATCH] feat(aa): improve internal sorting order. --- pkg/aa/profile.go | 8 ++++---- pkg/aa/signal.go | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pkg/aa/profile.go b/pkg/aa/profile.go index c1400da48..15d05cff0 100644 --- a/pkg/aa/profile.go +++ b/pkg/aa/profile.go @@ -20,10 +20,10 @@ const ( func init() { requirements[PROFILE] = requirement{ tokFLAGS: { - "enforce", "complain", "kill", "default_allow", "unconfined", - "prompt", "audit", "mediate_deleted", "attach_disconnected", - "attach_disconneced.path=", "chroot_relative", "debug", - "interruptible", "kill", "kill.signal=", + "attach_disconneced.path=", "attach_disconnected", "audit", + "chroot_relative", "complain", "debug", "default_allow", "enforce", + "interruptible", "kill.signal=", "kill", "kill", "mediate_deleted", + "prompt", "unconfined", }, } } diff --git a/pkg/aa/signal.go b/pkg/aa/signal.go index f33304ccf..29ce88740 100644 --- a/pkg/aa/signal.go +++ b/pkg/aa/signal.go @@ -16,11 +16,11 @@ func init() { "r", "w", "rw", "read", "write", "send", "receive", }, "set": { - "hup", "int", "quit", "ill", "trap", "abrt", "bus", "fpe", - "kill", "usr1", "segv", "usr2", "pipe", "alrm", "term", "stkflt", - "chld", "cont", "stop", "stp", "ttin", "ttou", "urg", "xcpu", - "xfsz", "vtalrm", "prof", "winch", "io", "pwr", "sys", "emt", - "exists", "rtmin+0", "rtmin+1", "rtmin+2", "rtmin+3", "rtmin+4", + "abrt", "alrm", "bus", "chld", "cont", "emt", "exists", "fpe", "hup", + "ill", "int", "io", "kill", "pipe", "prof", "pwr", "quit", "segv", + "stkflt", "stop", "stp", "sys", "term", "trap", "ttin", "ttou", + "urg", "usr1", "usr2", "vtalrm", "winch", "xcpu", "xfsz", + "rtmin+0", "rtmin+1", "rtmin+2", "rtmin+3", "rtmin+4", "rtmin+5", "rtmin+6", "rtmin+7", "rtmin+8", "rtmin+9", "rtmin+10", "rtmin+11", "rtmin+12", "rtmin+13", "rtmin+14", "rtmin+15", "rtmin+16", "rtmin+17", "rtmin+18", "rtmin+19", "rtmin+20",