user-util.h revision b26fa1a2fbcfee7d03b0c8fd15ec3aa64ae70b9f
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore This file is part of systemd.
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore Copyright 2010 Lennart Poettering
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore systemd is free software; you can redistribute it and/or modify it
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore under the terms of the GNU Lesser General Public License as published by
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore the Free Software Foundation; either version 2.1 of the License, or
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore (at your option) any later version.
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore systemd is distributed in the hope that it will be useful, but
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore WITHOUT ANY WARRANTY; without even the implied warranty of
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore Lesser General Public License for more details.
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore You should have received a copy of the GNU Lesser General Public License
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore along with systemd; If not, see <http://www.gnu.org/licenses/>.
#include <stdbool.h>
char* getlogname_malloc(void);
char* getusername_malloc(void);
int get_user_creds(const char **username, uid_t *uid, gid_t *gid, const char **home, const char **shell);
int reset_uid_gid(void);