From 084c51c67b07562ff0cf0df0774dfaf5978dcffd Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sat, 25 Sep 2021 13:28:36 -0500 Subject: move 00protected-links.conf to /usr/lib/sysctl.d Bug: https://bugs.gentoo.org/814664 Signed-off-by: William Hubbs --- Makefile | 3 ++- etc.Linux/sysctl.d/00protected-links.conf | 2 -- lib.Linux/sysctl.d/00protected-links.conf | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 etc.Linux/sysctl.d/00protected-links.conf create mode 100644 lib.Linux/sysctl.d/00protected-links.conf diff --git a/Makefile b/Makefile index 8d74853e..5bd10b91 100644 --- a/Makefile +++ b/Makefile @@ -64,9 +64,10 @@ install: $(INSTALL_DIR) $(DESTDIR)/etc cp -pPR etc/* etc.$(OS)/* $(DESTDIR)/etc/ echo "Gentoo Base System release ${PV}" > ${DESTDIR}/etc/gentoo-release + $(INSTALL_DIR) $(DESTDIR)/usr/lib + cp -pPR lib.$(OS)/* $(DESTDIR)/usr/lib/ $(INSTALL_DIR) $(DESTDIR)/usr/share/baselayout cp -pPR share.$(OS)/* $(DESTDIR)/usr/share/baselayout/ - $(INSTALL_DIR) $(DESTDIR)/usr/lib ./make_os_release $(OS) $(PV) > $(DESTDIR)/usr/lib/os-release ln -snf ../usr/lib/os-release ${DESTDIR}/etc/os-release diff --git a/etc.Linux/sysctl.d/00protected-links.conf b/etc.Linux/sysctl.d/00protected-links.conf deleted file mode 100644 index 5e4d7c6f..00000000 --- a/etc.Linux/sysctl.d/00protected-links.conf +++ /dev/null @@ -1,2 +0,0 @@ -fs.protected_symlinks = 1 -fs.protected_hardlinks = 1 diff --git a/lib.Linux/sysctl.d/00protected-links.conf b/lib.Linux/sysctl.d/00protected-links.conf new file mode 100644 index 00000000..5e4d7c6f --- /dev/null +++ b/lib.Linux/sysctl.d/00protected-links.conf @@ -0,0 +1,2 @@ +fs.protected_symlinks = 1 +fs.protected_hardlinks = 1 -- cgit v1.2.3-65-gdbad