[PATCH] Don't allow running as non-root (#583213).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 anaconda |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/anaconda b/anaconda
index 68e5fbb..569e6b3 100755
--- a/anaconda
+++ b/anaconda
@@ -465,6 +465,10 @@ if __name__ == "__main__":
     log = logging.getLogger("anaconda")
     stdoutLog = logging.getLogger("anaconda.stdout")
 
+    if os.geteuid() != 0:
+        stdoutLog.error("anaconda must be run as root.")
+        sys.exit(0)
+
     # pull this in to get product name and versioning
     import product
 
-- 
1.6.5.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux