user older functions as getres* are >=2.7
This commit is contained in:
parent
b0c01bbb82
commit
258316ca72
1 changed files with 4 additions and 2 deletions
|
@ -553,8 +553,10 @@ class Facts(object):
|
||||||
self.facts['user_gecos'] = pwent.pw_gecos
|
self.facts['user_gecos'] = pwent.pw_gecos
|
||||||
self.facts['user_dir'] = pwent.pw_dir
|
self.facts['user_dir'] = pwent.pw_dir
|
||||||
self.facts['user_shell'] = pwent.pw_shell
|
self.facts['user_shell'] = pwent.pw_shell
|
||||||
(self.facts['real_user_id'], self.facts['effective_user_id'], self.facts['saved_user_id']) = os.getresuid()
|
self.facts['real_user_id'] = os.getuid()
|
||||||
(self.facts['real_group_id'], self.facts['effective_group_id'], self.facts['saved_group_id']) = os.getresgid()
|
self.facts['effective_user_id'] = os.geteuid()
|
||||||
|
self.facts['real_group_id'] = os.getgid()
|
||||||
|
self.facts['effective_group_id'] = os.getgid()
|
||||||
|
|
||||||
def get_env_facts(self):
|
def get_env_facts(self):
|
||||||
self.facts['env'] = {}
|
self.facts['env'] = {}
|
||||||
|
|
Loading…
Reference in a new issue