Changeset 594 in openpam for trunk/lib/openpam_dynamic.c
- Timestamp:
- Apr 14, 2012, 2:18:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/openpam_dynamic.c
r525 r594 71 71 if ((fd = open(modfn, O_RDONLY)) < 0) 72 72 return (NULL); 73 if (openpam_check_desc_owner_perms(modfn, fd) != 0) { 73 if (OPENPAM_FEATURE(VERIFY_MODULE_FILE) && 74 openpam_check_desc_owner_perms(modfn, fd) != 0) { 74 75 close(fd); 75 76 return (NULL); … … 88 89 try_dlopen(const char *modfn) 89 90 { 91 int check_module_file; 90 92 void *dlh; 91 93 92 if (openpam_check_path_owner_perms(modfn) != 0) 94 openpam_get_feature(OPENPAM_FEATURE_CHECK_MODULE_FILE, 95 &check_module_file); 96 if (check_module_file && 97 openpam_check_path_owner_perms(modfn) != 0) 93 98 return (NULL); 94 99 if ((dlh = dlopen(modfn, RTLD_NOW)) == NULL) {
Note: See TracChangeset
for help on using the changeset viewer.