commit | b2678b66549ab3fcdceed643ac6873dd8316afc3 | [log] [tgz] |
---|---|---|
author | Alan Stokes <alanstokes@google.com> | Wed May 05 14:16:00 2021 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed May 05 14:16:00 2021 +0000 |
tree | 944dee36d462f4965ad68d5992f1f2999c593ff3 | |
parent | 7505efbd5d929f048145227132966f36ebb503c3 [diff] | |
parent | 23356377aed63632ddafa7c59c1d63d45e2be047 [diff] |
Merge "Only kill apps with storage app data isolation enabled"
diff --git a/Utils.cpp b/Utils.cpp index b353197..4635975 100644 --- a/Utils.cpp +++ b/Utils.cpp
@@ -240,7 +240,12 @@ } fsx.fsx_projid = projectId; - return ioctl(fd, FS_IOC_FSSETXATTR, &fsx); + ret = ioctl(fd, FS_IOC_FSSETXATTR, &fsx); + if (ret == -1) { + PLOG(ERROR) << "Failed to set project id on " << path; + return ret; + } + return 0; } int PrepareDirWithProjectId(const std::string& path, mode_t mode, uid_t uid, gid_t gid,