aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_disk_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-09 20:03:31 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-09 20:03:31 +0000
commitbc28ff95e287a6794890c75348075fa9bd7af2f7 (patch)
tree8311c91cfa435c7f0ecef9f27a277edc7ad99b96 /src/include/gnunet_disk_lib.h
parent7e332f5e005af87032decb86ac0a4bfbcc915cdc (diff)
downloadgnunet-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.h17
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 */
270int 270int
271GNUNET_DISK_handle_invalid (const struct GNUNET_DISK_FileHandle *h); 271GNUNET_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 */
507struct GNUNET_DISK_FileHandle * 507struct GNUNET_DISK_FileHandle *
508GNUNET_DISK_get_handle_from_w32_handle (HANDLE osfh); 508GNUNET_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 */
519void
520GNUNET_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