From 32423dcebfb49b08cac0851e076f3746fad100cf Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 29 Aug 2014 09:53:45 +0200 Subject: [PATCH] base-files: enable PID in core files and protected hard/soft links via sysctl.conf(5). --- srcpkgs/base-files/files/sysctl.conf | 6 ++++++ srcpkgs/base-files/template | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/base-files/files/sysctl.conf diff --git a/srcpkgs/base-files/files/sysctl.conf b/srcpkgs/base-files/files/sysctl.conf new file mode 100644 index 00000000000..5a8442f925c --- /dev/null +++ b/srcpkgs/base-files/files/sysctl.conf @@ -0,0 +1,6 @@ +# Append the PID to the core filename +kernel.core_uses_pid = 1 + +# Enable hard and soft link protection +fs.protected_hardlinks=1 +fs.protected_symlinks=1 diff --git a/srcpkgs/base-files/template b/srcpkgs/base-files/template index 378b563d05a..c0fbf23ec7f 100644 --- a/srcpkgs/base-files/template +++ b/srcpkgs/base-files/template @@ -1,6 +1,6 @@ # Template file for 'base-files' pkgname=base-files -version=0.108 +version=0.109 revision=1 bootstrap=yes build_style="meta" @@ -49,8 +49,11 @@ do_install() { install -m644 ${FILESDIR}/*.sh ${DESTDIR}/etc/profile.d install -m644 ${FILESDIR}/DIR_COLORS* ${DESTDIR}/etc + # modprobe(8) files vinstall ${FILESDIR}/usb-load-ehci-first 644 usr/lib/modprobe.d usb-load-ehci-first.conf vinstall ${FILESDIR}/blacklist.conf 644 usr/lib/modprobe.d + # sysctl(8) files + vinstall ${FILESDIR}/sysctl.conf 644 usr/lib/sysctl.d void.conf # Install common licenses, from Debian. vmkdir usr/share/licenses