Merge remote-tracking branch 'qubesos/pr/1'
* qubesos/pr/1: Check if QubesIncoming filesystem supports O_TMPFILE
This commit is contained in:
commit
83c03af067
@ -112,8 +112,8 @@ void process_one_file_reg(struct file_header *untrusted_hdr,
|
|||||||
if (use_tmpfile) {
|
if (use_tmpfile) {
|
||||||
fdout = open(".", O_WRONLY | O_TMPFILE, 0700);
|
fdout = open(".", O_WRONLY | O_TMPFILE, 0700);
|
||||||
if (fdout < 0) {
|
if (fdout < 0) {
|
||||||
if (errno==ENOENT)
|
if (errno==ENOENT || /* most likely, kernel too old for O_TMPFILE */
|
||||||
/* if it fails, do not attempt further use - most likely kernel too old */
|
errno==EOPNOTSUPP) /* filesystem has no support for O_TMPFILE */
|
||||||
use_tmpfile = 0;
|
use_tmpfile = 0;
|
||||||
else
|
else
|
||||||
do_exit(errno, untrusted_name);
|
do_exit(errno, untrusted_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user