Kaydet (Commit) e58806a8 authored tarafından İsmail Dönmez's avatar İsmail Dönmez

pam_console is gone

üst 912fd1b4
......@@ -786,17 +786,6 @@ def cleanupTmp():
os.chown("/tmp/.X11-unix", 0, 0)
os.chmod("/tmp/.X11-unix", 01777)
def resetConPerms():
# reset console permissions if we are actually using it
if os.path.exists("/sbin/pam_console_apply"):
for pamd in os.listdir("/etc/pam.d"):
data = loadFile(os.path.join("/etc/pam.d", pamd)).split("\n")
m = filter(lambda x: "pam_console" in x and not x.startswith("#"), data)
if len(m) > 0:
run("/sbin/pam_console_apply", "-r")
break
#
# Finalization functions
#
......@@ -988,8 +977,6 @@ elif sys.argv[1] == "boot":
ui.info(_("Updating environment variables"))
run("/sbin/update-environment")
resetConPerms()
cleanupTmp()
startComar()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment