Add type param to sudo_secure_path() and add sudo_secure_file()

and sudo_secure_dir() wrappers which get by #includedir in sudoers.
This commit is contained in:
Todd C. Miller
2012-02-29 15:50:48 -05:00
parent 35280a8437
commit 8d05f0d1b0
9 changed files with 188 additions and 90 deletions

View File

@@ -24,6 +24,8 @@
#define SUDO_PATH_WORLD_WRITABLE -4
#define SUDO_PATH_GROUP_WRITABLE -5
int sudo_secure_path(const char *path, uid_t uid, gid_t gid, struct stat *sbp);
int sudo_secure_dir(const char *path, uid_t uid, gid_t gid, struct stat *sbp);
int sudo_secure_file(const char *path, uid_t uid, gid_t gid, struct stat *sbp);
int sudo_secure_path(const char *path, int type, uid_t uid, gid_t gid, struct stat *sbp);
#endif /* _SUDO_SECURE_PATH_H */