version 1.11, 2019/02/16 05:30:28 |
version 1.12, 2019/02/16 10:44:01 |
|
|
} |
} |
|
|
/* |
/* |
* Pledges: unveil, rpath, cpath, wpath, stdio, fattr. |
* Pledges: unveil, rpath, cpath, wpath, stdio, fattr, chown. |
* Pledges (dry-run): -cpath, -wpath, -fattr. |
* Pledges (dry-run): -cpath, -wpath, -fattr, -chown. |
*/ |
*/ |
int |
int |
rsync_receiver(struct sess *sess, int fdin, int fdout, const char *root) |
rsync_receiver(struct sess *sess, int fdin, int fdout, const char *root) |
|
|
struct upload *ul = NULL; |
struct upload *ul = NULL; |
mode_t oumask; |
mode_t oumask; |
|
|
if (pledge("stdio rpath wpath cpath fattr getpw unveil", NULL) == -1) { |
if (pledge("stdio rpath wpath cpath fattr chown getpw unveil", NULL) == -1) { |
ERR(sess, "pledge"); |
ERR(sess, "pledge"); |
goto out; |
goto out; |
} |
} |