Merge pull request #1481 from again4you/devel/smack_sysuser_#4
smack: label /etc/passwd and friends as '_' smack label when --with-smack-run-label' is enabled (v3)
This commit is contained in:
@@ -29,9 +29,6 @@
|
||||
#include "fileio.h"
|
||||
#include "smack-util.h"
|
||||
|
||||
#define SMACK_FLOOR_LABEL "_"
|
||||
#define SMACK_STAR_LABEL "*"
|
||||
|
||||
#ifdef HAVE_SMACK
|
||||
bool mac_smack_use(void) {
|
||||
static int cached_use = -1;
|
||||
|
||||
@@ -27,6 +27,9 @@
|
||||
|
||||
#include "macro.h"
|
||||
|
||||
#define SMACK_FLOOR_LABEL "_"
|
||||
#define SMACK_STAR_LABEL "*"
|
||||
|
||||
typedef enum SmackAttr {
|
||||
SMACK_ATTR_ACCESS = 0,
|
||||
SMACK_ATTR_EXEC = 1,
|
||||
|
||||
Reference in New Issue
Block a user