From f5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 7 Mar 2024 17:28:52 -0500 Subject: build: Build mlibc + add distclean target Signed-off-by: Ian Moffett --- lib/mlibc/sysdeps/ironclad/include/sys/mac.h | 46 ---------------------------- 1 file changed, 46 deletions(-) delete mode 100644 lib/mlibc/sysdeps/ironclad/include/sys/mac.h (limited to 'lib/mlibc/sysdeps/ironclad/include/sys/mac.h') diff --git a/lib/mlibc/sysdeps/ironclad/include/sys/mac.h b/lib/mlibc/sysdeps/ironclad/include/sys/mac.h deleted file mode 100644 index d4cf76d..0000000 --- a/lib/mlibc/sysdeps/ironclad/include/sys/mac.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef _SYS_MAC_H -#define _SYS_MAC_H - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define MAC_CAP_SCHED 0b00000000001 -#define MAC_CAP_SPAWN 0b00000000010 -#define MAC_CAP_ENTROPY 0b00000000100 -#define MAC_CAP_SYS_MEM 0b00000001000 -#define MAC_CAP_USE_NET 0b00000010000 -#define MAC_CAP_SYS_NET 0b00000100000 -#define MAC_CAP_SYS_MNT 0b00001000000 -#define MAC_CAP_SYS_PWR 0b00010000000 -#define MAC_CAP_PTRACE 0b00100000000 -#define MAC_CAP_SETUID 0b01000000000 -#define MAC_CAP_SYS_MAC 0b10000000000 -#define MAC_CAP_CLOCK 0b100000000000 -#define MAC_CAP_SIGNALALL 0b1000000000000 -unsigned long get_mac_capabilities(void); -int set_mac_capabilities(unsigned long request); - -#define MAC_PERM_CONTENTS 0b0000001 -#define MAC_PERM_READ 0b0000010 -#define MAC_PERM_WRITE 0b0000100 -#define MAC_PERM_EXEC 0b0001000 -#define MAC_PERM_APPEND 0b0010000 -#define MAC_PERM_FLOCK 0b0100000 -#define MAC_PERM_DEV 0b1000000 -int add_mac_permissions(const char *path, int flags); - -#define MAC_DENY 0b001 -#define MAC_DENY_AND_SCREAM 0b010 -#define MAC_KILL 0b100 -int set_mac_enforcement(unsigned long enforcement); - -#ifdef __cplusplus -} -#endif - -#endif // _SYS_MAC_H -- cgit v1.2.3