feat(aa): add a mount flag.

This commit is contained in:
Alexandre Pujol 2025-05-26 01:01:08 +02:00
parent c07c5838e4
commit f717ea7383
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ func init() {
"ro", "rw", "acl", "async", "atime", "bind", "dev", "diratime", "ro", "rw", "acl", "async", "atime", "bind", "dev", "diratime",
"dirsync", "exec", "iversion", "loud", "mand", "move", "noacl", "dirsync", "exec", "iversion", "loud", "mand", "move", "noacl",
"noatime", "nodev", "nodiratime", "noexec", "noiversion", "nomand", "noatime", "nodev", "nodiratime", "noexec", "noiversion", "nomand",
"norelatime", "nosuid", "nouser", "private", "rbind", "relatime", "norelatime", "nosuid", "nosymfollow", "nouser", "private", "rbind", "relatime",
"remount", "rprivate", "rshared", "rslave", "runbindable", "shared", "remount", "rprivate", "rshared", "rslave", "runbindable", "shared",
"silent", "slave", "strictatime", "suid", "sync", "unbindable", "silent", "slave", "strictatime", "suid", "sync", "unbindable",
"user", "verbose", "user", "verbose",

View file

@ -182,7 +182,7 @@ func toValues(kind Kind, key string, input string) ([]string, error) {
continue continue
} }
if !slices.Contains(req, res[idx]) { if !slices.Contains(req, res[idx]) {
return nil, fmt.Errorf("unrecognized %s: %s", key, res[idx]) return nil, fmt.Errorf("unrecognized %s for rule %s: %s", key, kind, res[idx])
} }
} }
slices.SortFunc(res, func(i, j string) int { slices.SortFunc(res, func(i, j string) int {