/sssd/src/sbus/ |
H A D | sbus_client.c | 34 char *filename; local 43 filename = strchr(server_address, '/'); 44 if (filename == NULL) { 59 ret = check_file(filename, check_uid, check_gid, 62 DEBUG(SSSDBG_CRIT_FAILURE, "check_file failed for [%s].\n", filename);
|
H A D | sssd_dbus_server.c | 92 create_socket_symlink(const char *filename, const char *symlink_filename) argument 97 filename, symlink_filename); 99 ret = symlink(filename, symlink_filename); 112 ret = symlink(filename, symlink_filename); 118 filename, ret, strerror(ret)); 197 char *filename; local 226 filename = strchr(socket_address, '/'); 227 if (filename == NULL) { 243 ret = create_socket_symlink(filename, symlink_filename); 254 ret = check_file(filename, [all...] |
/sssd/src/util/ |
H A D | check_and_open.c | 36 errno_t check_file(const char *filename, argument 51 ret = stat(filename, stat_buf); 53 ret = lstat(filename, stat_buf); 57 filename, errno, strerror(errno)); 127 errno_t check_and_open_readonly(const char *filename, int *fd, argument 134 *fd = open(filename, O_RDONLY); 137 "open [%s] failed: [%d][%s].\n", filename, errno,
|
H A D | debug.c | 317 int chown_debug_file(const char *filename, argument 324 if (filename == NULL) { 327 log_file = filename; 354 int open_debug_file_ex(const char *filename, FILE **filep, bool want_cloexec) argument 364 if (filename == NULL) { 367 log_file = filename;
|
H A D | util.c | 984 const char *filename; member in struct:tmpfile_watch 987 static int unlink_dbg(const char *filename) argument 991 ret = unlink(filename); 996 "File already removed: [%s]\n", filename); 1001 filename, ret, strerror(ret)); 1013 if (tw == NULL || tw->filename == NULL) { 1018 DEBUG(SSSDBG_TRACE_INTERNAL, "Unlinking [%s]\n", tw->filename); 1020 return unlink_dbg(tw->filename); 1024 const char *filename) 1033 tw->filename 1023 tmpfile_watch_set(TALLOC_CTX *owner, const char *filename) argument [all...] |
/sssd/src/tests/ |
H A D | check_and_open-tests.c | 37 char *filename; variable 48 filename = strdup(FILENAME_TEMPLATE); 49 fail_unless(filename != NULL, "strdup failed"); 52 ret = mkstemp(filename); 72 fail_unless(filename != NULL, "unknown filename"); 73 ret = unlink(filename); 74 free(filename); 96 newpath_length = strlen(filename) + strlen(SUFFIX) + 1; 100 ret = snprintf(newpath, newpath_length, "%s%s", filename, SUFFI [all...] |
H A D | debug-tests.c | 121 char filename[24] = {'\0'}; local 134 strncpy(filename, "sssd_debug_tests.XXXXXX", 24); 137 fd = mkstemp(filename); 259 remove(filename); 266 char filename[24] = {'\0'}; local 274 strncpy(filename, "sssd_debug_tests.XXXXXX", 24); 277 fd = mkstemp(filename); 319 remove(filename);
|
H A D | krb5_utils-tests.c | 106 char *filename; local 132 filename = talloc_asprintf(tmp_ctx, "%s/ccfile", dn3); 133 fail_unless(filename != NULL, "talloc_asprintf failed."); 137 ret = sss_krb5_precreate_ccache(filename, uid, gid); 143 ret = sss_krb5_precreate_ccache(filename, uid, gid); 162 char *filename; local 178 filename = talloc_asprintf(tmp_ctx, "%s/ccfile", subdirname); 179 fail_unless(filename != NULL, "talloc_asprintf failed."); 181 ret = sss_krb5_precreate_ccache(filename, 12345, 12345); 193 char *filename; local [all...] |
H A D | util-tests.c | 40 char *filename; variable 592 filename = strdup(FILENAME_TEMPLATE); 593 fail_unless(filename != NULL, "strdup failed"); 597 ret = mkstemp(filename); 612 fail_unless(filename != NULL, "unknown filename"); 613 ret = unlink(filename); 614 free(filename);
|
/sssd/src/tools/common/ |
H A D | sss_colondb.c | 268 static FILE *open_db(const char *filename, enum sss_colondb_mode mode) argument 277 fp = filename == NULL ? stdin : fopen(filename, "r"); 280 fp = filename == NULL ? stdout : fopen(filename, "w"); 284 if (fp == NULL && filename != NULL) { 287 filename, ret, sss_strerror(ret)); 295 const char *filename) 305 db->file = open_db(filename, mode); 293 sss_colondb_open(TALLOC_CTX *mem_ctx, enum sss_colondb_mode mode, const char *filename) argument
|
/sssd/src/tests/cmocka/ |
H A D | test_io.c | 109 char *filename; member in struct:dir_state 134 data->filename = get_random_filepath(FILE_TEMPLATE); 135 assert_non_null(data->filename); 137 data->basename = basename(data->filename); 152 ret = unlink(data->filename); 154 free(data->filename);
|
H A D | test_utils.c | 1393 char *filename; member in struct:unique_file_test_ctx 1405 test_ctx->filename = talloc_strdup(test_ctx, "test_unique_file_XXXXXX"); 1420 ret = unlink(test_ctx->filename); 1442 check_filename = talloc_strdup(test_ctx, test_ctx->filename); 1447 ret = check_and_open_readonly(test_ctx->filename, &fd, 1467 fd = sss_unique_file(owner, test_ctx->filename, &ret); 1511 tmp_filename = talloc_strdup(test_ctx, test_ctx->filename); 1519 ret = sss_unique_filename(owner, test_ctx->filename); 1522 assert_int_equal(strncmp(test_ctx->filename, 1527 ret = check_and_open_readonly(test_ctx->filename, [all...] |
/sssd/src/providers/krb5/ |
H A D | krb5_renew_tgt.c | 328 const char *filename; local 340 filename = ccache_file + 5; 342 filename = ccache_file; 345 ret = stat(filename, &stat_buf);
|
H A D | krb5_utils.c | 206 check_ccache_re(const char *filename, pcre *illegal_re) argument 210 ret = pcre_exec(illegal_re, NULL, filename, strlen(filename), 214 "Illegal pattern in ccache directory name [%s].\n", filename); 219 "illegal patterns.\n", filename);
|
H A D | krb5_ccache.c | 217 const char *filename; local 223 filename = ccname; 225 filename = ccname + 5; 227 filename = ccname + 4; 237 ccdirname = talloc_strdup(tmp_ctx, filename); 451 const char *filename; local 456 filename = ccname; 458 filename = ccname + 5; 460 filename = ccname + 4; 461 if (filename[ [all...] |
/sssd/src/db/ |
H A D | sysdb_init.c | 49 const char *filename, 77 ret = ldb_connect(ldb, filename, flags, NULL); 48 sysdb_ldb_connect(TALLOC_CTX *mem_ctx, const char *filename, int flags, struct ldb_context **_ldb) argument
|
/sssd/src/providers/ad/ |
H A D | ad_gpo_child.c | 288 char *filename = NULL; local 315 filename = talloc_asprintf(tmp_ctx, GPO_CACHE_PATH"%s", smb_path_with_suffix); 316 if (filename == NULL) { 322 tmp_name = talloc_asprintf(tmp_ctx, "%sXXXXXX", filename); 361 ret = rename(tmp_name, filename);
|
H A D | ad_gpo.c | 1055 * the cse-specific filename), and returns the policy_setting_value 1110 * This function parses the cse-specific (GP_EXT_GUID_SECURITY) filename, 1116 const char *filename) 1141 ret = ini_config_file_open(filename, 0, &file_ctx); 1155 filename, ret, strerror(ret)); 1184 ret = ini_config_file_open(filename, 0, &file_ctx); 1207 filename, ret, strerror(ret)); 1115 ad_gpo_store_policy_settings(struct sss_domain_info *domain, const char *filename) argument
|
/sssd/src/responder/secrets/ |
H A D | local.c | 924 static int generate_master_key(const char *filename, size_t size) argument 939 fd = open(filename, O_CREAT|O_EXCL|O_WRONLY, 0600); 944 filename, ret, strerror(ret)); 956 ret = unlink(filename); 962 filename, ret, sss_strerror(ret));
|
/sssd/src/tools/ |
H A D | files.c | 280 const char *filename) 293 nchars = readlinkat(dir_fd, filename, buffer, size); 279 talloc_readlinkat(TALLOC_CTX *mem_ctx, int dir_fd, const char *filename) argument
|
H A D | sss_seed.c | 239 char *filename, 258 fd = open(filename, O_RDONLY); 262 filename, errno, strerror(errno)); 273 filename, ret, strerror(ret)); 238 seed_password_input_file(TALLOC_CTX *mem_ctx, char *filename, char **_password) argument
|
H A D | sss_override.c | 1277 static errno_t user_export(const char *filename, argument 1294 db = sss_colondb_open(tmp_ctx, SSS_COLONDB_WRITE, filename); 1297 filename == NULL ? "stdout" : filename); 1346 static errno_t group_export(const char *filename, argument 1364 db = sss_colondb_open(tmp_ctx, SSS_COLONDB_WRITE, filename); 1367 filename == NULL ? "stdout" : filename); 1569 const char *filename; local 1595 ret = parse_cmdline_import(cmdline, &filename); 1648 const char *filename; local 1825 const char *filename; local 1899 const char *filename; local [all...] |
/sssd/src/responder/ssh/ |
H A D | sshsrv_cmd.c | 578 char *filename = NULL; local 597 filename = talloc_strdup(tmp_ctx, SSS_SSH_KNOWN_HOSTS_TEMP_TMPL); 598 if (!filename) { 603 fd = sss_unique_file_ex(tmp_ctx, filename, 0133, &ret); 605 filename = NULL; 666 ret = rename(filename, SSS_SSH_KNOWN_HOSTS_PATH);
|
/sssd/src/sss_client/ |
H A D | pam_sss.c | 310 char *filename = NULL; local 320 filename = malloc(size); 321 if (filename == NULL) { 326 ret = snprintf(filename, size, PW_RESET_MSG_FILENAME_TEMPLATE, domain_name, 334 fd = open(filename, O_RDONLY); 359 filename); 411 free(filename);
|
/sssd/src/monitor/ |
H A D | monitor.c | 132 char *filename; member in struct:config_file_callback 572 const char *filename) 1697 cb->fn(file_ctx, cb->filename); 1729 cb->filename, 1734 cb->fn(file_ctx, cb->filename); 1745 cb->filename, IN_MODIFY); 1754 cb->filename, err, strerror(err)); 1769 cb->fn(file_ctx, cb->filename); 1789 ret = stat(cb->filename, &file_stat); 1794 cb->filename, er 571 monitor_update_resolv(struct config_file_ctx *file_ctx, const char *filename) argument 1823 try_inotify(struct config_file_ctx *file_ctx, const char *filename, monitor_reconf_fn fn) argument [all...] |