Do not allow to login as root in Dom0
Anaconda apparently uses en empty password by default for root user -- this allows for trivial bypass of the screenlocker in Dom0 -- just switch to a text console and log in as root with empty password. So, we tell anaconda to lock this root account.
This commit is contained in:
parent
d26b05710f
commit
46578f3f7d
@ -96,7 +96,7 @@ class Users:
|
|||||||
def __init__ (self, anaconda):
|
def __init__ (self, anaconda):
|
||||||
self.anaconda = anaconda
|
self.anaconda = anaconda
|
||||||
self.admin = libuser.admin()
|
self.admin = libuser.admin()
|
||||||
self.rootPassword = { "isCrypted": False, "password": "", "lock": False }
|
self.rootPassword = { "isCrypted": False, "password": "", "lock": True }
|
||||||
|
|
||||||
def createGroup (self, name=None, gid=None, root="/mnt/sysimage"):
|
def createGroup (self, name=None, gid=None, root="/mnt/sysimage"):
|
||||||
childpid = os.fork()
|
childpid = os.fork()
|
||||||
|
Loading…
Reference in New Issue
Block a user