Skip to contentSkip to conversation

security: remove unneeded subdir-$(CONFIG_...)

PATCH In review Masahiro Yamada 1 participant 3 messages May 28, 2021 – Aug 24, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 security: remove unneeded subdir-$(CONFIG_...)

All of these are unneeded. The directories to descend are specified by obj-$(CONFIG_...).

---

 security/Makefile | 11 -----------
 1 file changed, 11 deletions(-)
security/Makefile +0 -11
index 47e432900e24..18121f8f85cd 100644
@@ -4,16 +4,6 @@
 #
 
 obj-$(CONFIG_KEYS)			+= keys/
-subdir-$(CONFIG_SECURITY_SELINUX)	+= selinux
-subdir-$(CONFIG_SECURITY_SMACK)		+= smack
-subdir-$(CONFIG_SECURITY_TOMOYO)        += tomoyo
-subdir-$(CONFIG_SECURITY_APPARMOR)	+= apparmor
-subdir-$(CONFIG_SECURITY_YAMA)		+= yama
-subdir-$(CONFIG_SECURITY_LOADPIN)	+= loadpin
-subdir-$(CONFIG_SECURITY_SAFESETID)    += safesetid
-subdir-$(CONFIG_SECURITY_LOCKDOWN_LSM)	+= lockdown
-subdir-$(CONFIG_BPF_LSM)		+= bpf
-subdir-$(CONFIG_SECURITY_LANDLOCK)	+= landlock
 
 # always enable default capabilities
 obj-y					+= commoncap.o
@@ -36,5 +26,4 @@ obj-$(CONFIG_BPF_LSM)			+= bpf/
 obj-$(CONFIG_SECURITY_LANDLOCK)		+= landlock/
 
 # Object integrity file lists
-subdir-$(CONFIG_INTEGRITY)		+= integrity
 obj-$(CONFIG_INTEGRITY)			+= integrity/
Signature · 1 line
2.27.0
#1 lore raw
Quoted 5 lines · Masahiro Yamada

All of these are unneeded. The directories to descend are specified by obj-$(CONFIG_...).

Ping?

Quoted 35 lines

---

 security/Makefile | 11 -----------
 1 file changed, 11 deletions(-)
security/Makefile +0 -12
index 47e432900e24..18121f8f85cd 100644
@@ -4,16 +4,6 @@
 #
 
 obj-$(CONFIG_KEYS)                     += keys/
-subdir-$(CONFIG_SECURITY_SELINUX)      += selinux
-subdir-$(CONFIG_SECURITY_SMACK)                += smack
-subdir-$(CONFIG_SECURITY_TOMOYO)        += tomoyo
-subdir-$(CONFIG_SECURITY_APPARMOR)     += apparmor
-subdir-$(CONFIG_SECURITY_YAMA)         += yama
-subdir-$(CONFIG_SECURITY_LOADPIN)      += loadpin
-subdir-$(CONFIG_SECURITY_SAFESETID)    += safesetid
-subdir-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown
-subdir-$(CONFIG_BPF_LSM)               += bpf
-subdir-$(CONFIG_SECURITY_LANDLOCK)     += landlock
 
 # always enable default capabilities
 obj-y                                  += commoncap.o
@@ -36,5 +26,4 @@ obj-$(CONFIG_BPF_LSM)                 += bpf/
 obj-$(CONFIG_SECURITY_LANDLOCK)                += landlock/
 
 # Object integrity file lists
-subdir-$(CONFIG_INTEGRITY)             += integrity
 obj-$(CONFIG_INTEGRITY)                        += integrity/
--

2.27.0

Signature · 2 lines
Best Regards
Masahiro Yamada
#2 lore raw
Quoted 11 lines · Masahiro Yamada
Quoted 5 lines · Masahiro Yamada

All of these are unneeded. The directories to descend are specified by obj-$(CONFIG_...).

Ping?

Applied to linux-kbuild.

Quoted 42 lines
Quoted 35 lines

---

 security/Makefile | 11 -----------
 1 file changed, 11 deletions(-)
security/Makefile +0 -12
index 47e432900e24..18121f8f85cd 100644
@@ -4,16 +4,6 @@
 #
 
 obj-$(CONFIG_KEYS)                     += keys/
-subdir-$(CONFIG_SECURITY_SELINUX)      += selinux
-subdir-$(CONFIG_SECURITY_SMACK)                += smack
-subdir-$(CONFIG_SECURITY_TOMOYO)        += tomoyo
-subdir-$(CONFIG_SECURITY_APPARMOR)     += apparmor
-subdir-$(CONFIG_SECURITY_YAMA)         += yama
-subdir-$(CONFIG_SECURITY_LOADPIN)      += loadpin
-subdir-$(CONFIG_SECURITY_SAFESETID)    += safesetid
-subdir-$(CONFIG_SECURITY_LOCKDOWN_LSM) += lockdown
-subdir-$(CONFIG_BPF_LSM)               += bpf
-subdir-$(CONFIG_SECURITY_LANDLOCK)     += landlock
 
 # always enable default capabilities
 obj-y                                  += commoncap.o
@@ -36,5 +26,4 @@ obj-$(CONFIG_BPF_LSM)                 += bpf/
 obj-$(CONFIG_SECURITY_LANDLOCK)                += landlock/
 
 # Object integrity file lists
-subdir-$(CONFIG_INTEGRITY)             += integrity
 obj-$(CONFIG_INTEGRITY)                        += integrity/
--
Quoted 2 lines

2.27.0

--
Best Regards
Masahiro Yamada

Signature · 2 lines
Best Regards
Masahiro Yamada