Skip to content

/tmp/ can be mounted in noexec mode #143

Description

@patatetom

hi,
this is the case on my CB Asus C301SA ;-)
thanks for your work !

--- functions.sh.org	2021-01-13 08:40:22.949997000 +0100
+++ functions.sh	2021-01-13 08:47:28.909996042 +0100
@@ -399,22 +399,34 @@
 #start with a known good state
 cleanup
 
-#get required tools
+#get required tools and check executability
 get_flashrom
 if [ $? -ne 0 ]; then
     echo_red "Unable to download flashrom utility; cannot continue"
     return 1
 fi
+if [ ! -x ${flashromcmd} ]; then
+    echo_red "Unable to execute flashrom utility; cannot continue"
+    return 1
+fi
 get_cbfstool
 if [ $? -ne 0 ]; then
     echo_red "Unable to download cbfstool utility; cannot continue"
     return 1
 fi
+if [ ! -x ${cbfstoolcmd} ]; then
+    echo_red "Unable to execute cbfstool utility; cannot continue"
+    return 1
+fi
 get_gbb_utility
 if [ $? -ne 0 ]; then
     echo_red "Unable to download gbb_utility utility; cannot continue"
     return 1
 fi
+if [ ! -x ${gbbutilitycmd} ]; then
+    echo_red "Unable to execute gbb_utility utility; cannot continue"
+    return 1
+fi
 
 #get full device info
 if [[ "$isChromeOS" = true && ! -d /sys/firmware/efi ]]; then

regards.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions