expanded user facts to effective/real/saved

This commit is contained in:
Brian Coca 2017-02-14 14:37:10 -05:00
parent 2505d56401
commit 009ac075b7

View file

@ -553,6 +553,8 @@ 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_group_id'], self.facts['effective_group_id'], self.facts['saved_group_id']) = os.getresgid()
def get_env_facts(self): def get_env_facts(self):
self.facts['env'] = {} self.facts['env'] = {}