Searched defs:mode (Results 1 - 12 of 12) sorted by relevance

/sssd/src/util/
H A Dcheck_and_open.c34 mode_t mode, mode_t mask);
37 uid_t uid, uid_t gid, mode_t mode, mode_t mask,
61 return perform_checks(stat_buf, uid, gid, mode, mask);
65 mode_t mode, mode_t mask,
86 return perform_checks(stat_buf, uid, gid, mode, mask);
91 mode_t mode, mode_t mask)
101 if ((mode & S_IFMT) != (st_mode & S_IFMT)) {
106 if ((st_mode & ALLPERMS) != (mode & ALLPERMS)) {
108 "File has the wrong (bit masked) mode [%.7o], "
110 (st_mode & ALLPERMS), (mode
36 check_file(const char *filename, uid_t uid, uid_t gid, mode_t mode, mode_t mask, struct stat *caller_stat_buf, bool follow_symlink) argument
64 check_fd(int fd, uid_t uid, gid_t gid, mode_t mode, mode_t mask, struct stat *caller_stat_buf) argument
89 perform_checks(struct stat *stat_buf, uid_t uid, gid_t gid, mode_t mode, mode_t mask) argument
127 check_and_open_readonly(const char *filename, int *fd, uid_t uid, gid_t gid, mode_t mode, mode_t mask) argument
[all...]
H A Dsss_krb5.c286 enum matching_mode mode = MODE_NORMAL; local
305 mode = MODE_PREFIX;
310 mode = MODE_POSTFIX;
320 if ((mode == MODE_NORMAL &&
322 (mode == MODE_PREFIX &&
324 (mode == MODE_POSTFIX &&
/sssd/src/tools/sssctl/
H A Dsssctl_systemd.c62 const char *mode = SSS_SYSTEMD_MODE; local
77 DBUS_TYPE_STRING, &mode);
/sssd/src/tests/
H A Dcheck_and_open-tests.c40 mode_t mode; variable
59 mode = (S_IRUSR | S_IWUSR);
83 uid, gid, S_IFREG|mode, 0);
108 ret = check_file(newpath, uid, gid, S_IFREG|mode, 0, NULL, false);
135 ret = check_file(newpath, uid, gid, S_IFREG|mode, 0, NULL, true);
148 ret = check_and_open_readonly("/dev/null", &fd, uid, gid, S_IFREG|mode, 0);
159 ret = check_and_open_readonly(filename, &fd, uid+1, gid, S_IFREG|mode, 0);
170 ret = check_and_open_readonly(filename, &fd, uid, gid+1, S_IFREG|mode, 0);
182 uid, gid, S_IFREG|mode|S_IWOTH, 0);
184 "check_and_open_readonly succeeded with wrong mode");
[all...]
H A Dkrb5_utils-tests.c77 static void check_dir(const char *dirname, uid_t uid, gid_t gid, mode_t mode) argument
92 fail_unless((stat_buf.st_mode & ~S_IFMT) == mode,
93 "mode of [%s] does not match, "
95 mode, (stat_buf.st_mode & ~S_IFMT));
/sssd/src/tools/common/
H A Dsss_colondb.c102 enum sss_colondb_mode mode; member in struct:sss_colondb
117 if (db->mode != SSS_COLONDB_READ) {
195 if (db->mode != SSS_COLONDB_WRITE) {
268 static FILE *open_db(const char *filename, enum sss_colondb_mode mode) argument
275 switch (mode) {
294 enum sss_colondb_mode mode,
305 db->file = open_db(filename, mode);
306 db->mode = mode;
293 sss_colondb_open(TALLOC_CTX *mem_ctx, enum sss_colondb_mode mode, const char *filename) argument
/sssd/src/tests/cwrap/
H A Dtest_responder_common.c126 void check_sock_properties(struct create_pipe_ctx *ctx, mode_t mode) argument
137 assert_true((sbuf.st_mode & ~S_IFMT) == mode);
/sssd/src/p11_child/
H A Dp11_child_nss.c73 enum op_mode mode, const char *pin,
198 if (mode == OP_PREAUTH) {
209 if (mode == OP_AUTH || PK11_NeedLogin(slot)) {
353 if (mode == OP_AUTH) {
500 enum op_mode mode = OP_NONE; local
522 {"auth", 0, POPT_ARG_NONE, NULL, 'a', _("Run in auth mode"), NULL},
523 {"pre", 0, POPT_ARG_NONE, NULL, 'p', _("Run in pre-auth mode"), NULL},
551 if (mode != OP_NONE) {
558 mode = OP_AUTH;
561 if (mode !
72 do_work(TALLOC_CTX *mem_ctx, const char *nss_db, const char *slot_name_in, enum op_mode mode, const char *pin, struct cert_verify_opts *cert_verify_opts, char **cert, char **token_name_out) argument
[all...]
/sssd/src/providers/ad/
H A Dad_access.c423 enum gpo_access_control_mode mode; local
427 mode = state->ctx->gpo_access_control_mode;
437 if (mode == GPO_ACCESS_CONTROL_ENFORCING) {
442 "but GPO is not in enforcing mode.\n",
446 "ad_gpo_access_control option were set to enforcing mode.");
/sssd/src/python/
H A Dpysss.c972 int mode; local
977 &password, &plen, &mode)) {
988 mode, &obfpwd);
/sssd/src/tools/
H A Dfiles.c379 mode_t mode,
424 /* Set the desired mode. */
425 ret = fchmod(ofd, mode);
428 DEBUG(SSSDBG_OP_FAILURE, "Error changing mode: %s\n",
494 mode_t mode,
516 ofd = open(dest, dest_flags, mode);
532 ret = copy_file_contents(ifd, ofd, mode, uid, gid);
545 mode_t mode,
651 mode_t mode,
724 /* Set the desired mode
377 copy_file_contents(int ifd, int ofd, mode_t mode, uid_t uid, gid_t gid) argument
492 copy_file_secure(const char *src, const char *dest, mode_t mode, uid_t uid, gid_t gid, bool force) argument
647 copy_dir(struct copy_ctx *cctx, int src_dir_fd, const char *src_dir_path, int dest_parent_fd, const char *dest_dir_name, const char *dest_dir_path, mode_t mode, const struct stat *src_dir_stat) argument
[all...]
/sssd/src/tests/cmocka/
H A Dtest_ipa_subdomains_server.c80 krb5int_labeled_fopen(const char *path, const char *mode) argument
82 return fopen(path, mode);
86 krb5int_labeled_open(const char *path, int flags, mode_t mode) argument
88 return open(path, flags, mode);

Completed in 1782 milliseconds