Description : Set PATH in local script for security policy
authorwchang kim <wchang.kim@samsung.com>
Wed, 29 Jun 2016 00:18:37 +0000 (09:18 +0900)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 24 Feb 2017 15:08:16 +0000 (16:08 +0100)
Set PATH in local script for security

Change-Id: If1f6163bdd936222e103822ee01d4c9a7e886a72
Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
src/kernel-install/50-depmod.install
src/kernel-install/90-loaderentry.install
src/kernel-install/kernel-install

index 68c24be..8985780 100644 (file)
@@ -2,6 +2,8 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
 [[ $1 == "add" ]] || exit 0
 [[ $2 ]] || exit 1
 
index a0bca05..b0842c9 100644 (file)
@@ -2,6 +2,8 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
 COMMAND="$1"
 KERNEL_VERSION="$2"
 BOOT_DIR_ABS="$3"
index 1159dc3..cce3273 100644 (file)
@@ -19,6 +19,8 @@
 # You should have received a copy of the GNU Lesser General Public License
 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
 
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
 usage()
 {
     echo "Usage:"