You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Mladen Turk <mt...@apache.org> on 2004/08/28 13:22:34 UTC

[PATCH] set process attribute uid -- v.2

Hi,

Taking into account few comments from the previous patch...

1. Added two new functions:
    apr_procattr_user_set
    apr_procattr_group_set
2. Added define APR_PROCATTR_USER_SET_REQUIRES_PASSWORD
    that tells if the password is needed for user_set call.
3. For unix the uid and gid are set only if the effective
    user id is 0 (root). If the group_set is never called
    the gid equals to the default one obtained by apr_uid_get.
4. Keep ImpersonateLoggedOnUser. Although few guys had some
    objections, using impersonation we are skipping the process
    creation if the account has no privilege to access the
    process executable. (Without impersonation the process is
    still executed, and that breaks the entire purpose of the patch).
5. For other platforms those functions return APR_ENOTIMPL.


Regards,
MT.