Esempio n. 1
0
int
__k42_linux_setreuid (uid_t uid, uid_t euid)
{
    int retvalue;

    retvalue = set_helper(
	ProcessLinux::SETREUID,
	uid, euid, 0, 0, 0, 0, 0, 0);
    return (retvalue);
}
Esempio n. 2
0
int
__k42_linux_setresgid (gid_t gid, gid_t egid, gid_t sgid)
{
    int retvalue;

    retvalue = set_helper(
	ProcessLinux::SETRESGID,
	0, 0, 0, 0, gid, egid, sgid, 0);
    return (retvalue);
}
Esempio n. 3
0
int
__k42_linux_setgid (gid_t gid)
{
    int retvalue;

    retvalue = set_helper(
	ProcessLinux::SETGID,
	0, 0, 0, 0, gid, 0, 0, 0);
    return (retvalue);
}
Esempio n. 4
0
int
__k42_linux_setuid (uid_t uid)
{
err_printf("%s uid=%d\n", __func__, uid);
    int retvalue;

    retvalue = set_helper(
	ProcessLinux::SETUID,
	uid, 0, 0, 0, 0, 0, 0, 0);
    return (retvalue);
}
Esempio n. 5
0
int
__k42_linux_setfsgid (gid_t fsgid)
{
    /*
     * On error returns the current value of fsgid
     * FIXME MAA crazy return code not implemented
     */
    int retvalue;

    retvalue = set_helper(
	ProcessLinux::SETFSGID,
	0, 0, 0, 0, 0, 0, 0, fsgid);
    return (retvalue);
}
Esempio n. 6
0
int
__k42_linux_setfsuid (uid_t fsuid)
{
    /*
     * unlike the linux version, we return -1 if it fails
     * and set errno
     * FIXME MAA - crazy return values not implemented
     */
    int retvalue;

    retvalue = set_helper(
	ProcessLinux::SETFSUID,
	0, 0, 0, fsuid, 0, 0, 0, 0);
    return (retvalue);
}
Esempio n. 7
0
 bool set(const string_t& key, const T& value)
 {
     return set_helper(key, value);
 }