apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <mt...@apache.org>
Subject [PATCH] set process attribute uid -- v.2
Date Sat, 28 Aug 2004 11:22:34 GMT

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.


Mime
View raw message