Changeset 740 for vendor/current/lib/uid_wrapper
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- Location:
- vendor/current/lib/uid_wrapper
- Files:
-
- 2 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/uid_wrapper/uid_wrapper.c
r414 r740 16 16 */ 17 17 18 #ifdef _SAMBA_BUILD_ 19 18 20 #define UID_WRAPPER_NOT_REPLACE 19 #include "includes.h" 21 #include "../replace/replace.h" 22 #include <talloc.h> 20 23 #include "system/passwd.h" 21 #include "system/filesys.h" 24 25 #else /* _SAMBA_BUILD_ */ 26 27 #error uid_wrapper_only_supported_in_samba_yet 28 29 #endif 22 30 23 31 #ifndef _PUBLIC_ … … 45 53 /* put us in one group */ 46 54 uwrap.ngroups = 1; 47 uwrap.groups = talloc_array( talloc_autofree_context(), gid_t, 1);55 uwrap.groups = talloc_array(NULL, gid_t, 1); 48 56 uwrap.groups[0] = 0; 49 57 } … … 109 117 110 118 if (size != 0) { 111 uwrap.groups = talloc_array( talloc_autofree_context(), gid_t, size);119 uwrap.groups = talloc_array(NULL, gid_t, size); 112 120 if (uwrap.groups == NULL) { 113 121 errno = ENOMEM; -
vendor/current/lib/uid_wrapper/uid_wrapper.h
r414 r740 18 18 #ifndef __UID_WRAPPER_H__ 19 19 #define __UID_WRAPPER_H__ 20 #ifndef uwrap_enabled 21 22 int uwrap_enabled(void); 23 int uwrap_seteuid(uid_t euid); 24 uid_t uwrap_geteuid(void); 25 int uwrap_setegid(gid_t egid); 26 uid_t uwrap_getegid(void); 27 int uwrap_setgroups(size_t size, const gid_t *list); 28 int uwrap_getgroups(int size, gid_t *list); 29 uid_t uwrap_getuid(void); 30 gid_t uwrap_getgid(void); 20 31 21 32 #ifdef seteuid … … 59 70 #define getgid uwrap_getgid 60 71 61 int uwrap_enabled(void); 62 72 #endif 63 73 #endif /* __UID_WRAPPER_H__ */
Note:
See TracChangeset
for help on using the changeset viewer.