⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 secutil.h

📁 文件传输协议linux 下vsftpd2.1.0.tar.gz
💻 H
字号:
#ifndef VSF_SECUTIL_H#define VSF_SECUTIL_Hstruct mystr;/* vsf_secutil_change_credentials() * PURPOSE * This function securely switches process credentials to the user specified. * There are options to enter a chroot() jail, and supplementary groups may * or may not be activated. * PARAMETERS * p_user_str     - the name of the user to become * p_dir_str      - the directory to chdir() and possibly chroot() to. *                  (if NULL, the user's home directory is used) * p_ext_dir_str  - the directory to chdir() and possibly chroot() to, *                  applied in addition to the directory calculated by *                  p_user_str and p_dir_str. * caps           - bitmap of capabilities to adopt. NOTE, if the underlying *                  OS does not support capabilities as a non-root user, and *                  the capability bitset is non-empty, then root privileges *                  will have to be retained. * options        - see bitmask definitions below *//* chroot() the user into the new directory */#define VSF_SECUTIL_OPTION_CHROOT       1/* Activate any supplementary groups the user may have */#define VSF_SECUTIL_OPTION_USE_GROUPS   2/* Do the chdir() as the effective userid of the target user */#define VSF_SECUTIL_OPTION_CHANGE_EUID  4void vsf_secutil_change_credentials(const struct mystr* p_user_str,                                    const struct mystr* p_dir_str,                                    const struct mystr* p_ext_dir_str,                                    unsigned int caps, unsigned int options);#endif /* VSF_SECUTIL_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -