diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-09 20:03:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-09 20:03:31 +0000 |
commit | bc28ff95e287a6794890c75348075fa9bd7af2f7 (patch) | |
tree | 8311c91cfa435c7f0ecef9f27a277edc7ad99b96 /src/include/gnunet_disk_lib.h | |
parent | 7e332f5e005af87032decb86ac0a4bfbcc915cdc (diff) | |
download | gnunet-bc28ff95e287a6794890c75348075fa9bd7af2f7.tar.gz gnunet-bc28ff95e287a6794890c75348075fa9bd7af2f7.zip |
changing UNIX domain socket access control to file permissions checks, instead of UDS credentials (#2887)
Diffstat (limited to 'src/include/gnunet_disk_lib.h')
-rw-r--r-- | src/include/gnunet_disk_lib.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h index f6aa3d070..7de64abff 100644 --- a/src/include/gnunet_disk_lib.h +++ b/src/include/gnunet_disk_lib.h | |||
@@ -265,7 +265,7 @@ enum GNUNET_DISK_PipeEnd | |||
265 | * Checks whether a handle is invalid | 265 | * Checks whether a handle is invalid |
266 | * | 266 | * |
267 | * @param h handle to check | 267 | * @param h handle to check |
268 | * @return GNUNET_YES if invalid, GNUNET_NO if valid | 268 | * @return #GNUNET_YES if invalid, #GNUNET_NO if valid |
269 | */ | 269 | */ |
270 | int | 270 | int |
271 | GNUNET_DISK_handle_invalid (const struct GNUNET_DISK_FileHandle *h); | 271 | GNUNET_DISK_handle_invalid (const struct GNUNET_DISK_FileHandle *h); |
@@ -506,6 +506,21 @@ GNUNET_DISK_pipe_handle (const struct GNUNET_DISK_PipeHandle *p, | |||
506 | */ | 506 | */ |
507 | struct GNUNET_DISK_FileHandle * | 507 | struct GNUNET_DISK_FileHandle * |
508 | GNUNET_DISK_get_handle_from_w32_handle (HANDLE osfh); | 508 | GNUNET_DISK_get_handle_from_w32_handle (HANDLE osfh); |
509 | #else | ||
510 | |||
511 | /** | ||
512 | * Update POSIX permissions mask of a file on disk. If both argumets | ||
513 | * are #GNUNET_NO, the file is made world-read-write-executable (777). | ||
514 | * | ||
515 | * @param fn name of the file to update | ||
516 | * @param require_uid_match #GNUNET_YES means 700 | ||
517 | * @param require_gid_match #GNUNET_YES means 770 unless @a require_uid_match is set | ||
518 | */ | ||
519 | void | ||
520 | GNUNET_DISK_fix_permissions (const char *fn, | ||
521 | int require_uid_match, | ||
522 | int require_gid_match); | ||
523 | |||
509 | #endif | 524 | #endif |
510 | 525 | ||
511 | 526 | ||