]> Pileus Git - ~andy/linux/blobdiff - include/uapi/linux/audit.h
audit: audit feature to only allow unsetting the loginuid
[~andy/linux] / include / uapi / linux / audit.h
index 9eddf2ca614f4c79c986cad8e98dccc6f0763f10..05e5e8fc2ac41d89e55712d5486ecb19f0f80025 100644 (file)
@@ -386,7 +386,8 @@ struct audit_features {
        __u32   lock;           /* which features to lock */
 };
 
-#define AUDIT_LAST_FEATURE     -1
+#define AUDIT_FEATURE_ONLY_UNSET_LOGINUID      0
+#define AUDIT_LAST_FEATURE                     AUDIT_FEATURE_ONLY_UNSET_LOGINUID
 
 #define audit_feature_valid(x)         ((x) >= 0 && (x) <= AUDIT_LAST_FEATURE)
 #define AUDIT_FEATURE_TO_MASK(x)       (1 << ((x) & 31)) /* mask for __u32 */