There are 6 access bits to be stored in the access field. Special value -1
is used to distinguish set rules from change rules. Shrinking the filed to
8 bits still leaves space for one more future access bit.
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <stdint.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
};
struct smack_rule {
+ int8_t allow_code;
+ int8_t deny_code;
int subject_id;
int object_id;
- int allow_code;
- int deny_code;
struct smack_rule *next;
};