fs, kernel: permit disabling the uselib syscall
[deliverable/linux.git] / fs / exec.c
index 4f59402fdda541bd22349aad786a95d12cc6d089..25dfeba6d55f8ce8752fa551fbc823535077ef0e 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -97,6 +97,7 @@ static inline void put_binfmt(struct linux_binfmt * fmt)
        module_put(fmt->module);
 }
 
+#ifdef CONFIG_USELIB
 /*
  * Note that a shared library must be both readable and executable due to
  * security reasons.
@@ -156,6 +157,7 @@ exit:
 out:
        return error;
 }
+#endif /* #ifdef CONFIG_USELIB */
 
 #ifdef CONFIG_MMU
 /*
This page took 0.025223 seconds and 5 git commands to generate.