<div dir="ltr"><div>Hi Louis and Duncan,</div><div><br></div><div>Sorry the issue is indeed on our si8de, the bot is not run as run root, but some manual investigation last week accidentally created these files with root ownership, sorry for that.</div><div><br></div><div>Thanks</div><div>Yvan</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 6 Apr 2020 at 10:09, Duncan Exon Smith <<a href="mailto:dexonsmith@apple.com">dexonsmith@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On 2020-Apr-02, at 13:10, Duncan Exon Smith via libcxx-dev <<a href="mailto:libcxx-dev@lists.llvm.org" target="_blank">libcxx-dev@lists.llvm.org</a>> wrote:<br>
> <br>
> <br>
> <br>
>> On 2020-Apr-02, at 11:23, Louis Dionne <<a href="mailto:ldionne@apple.com" target="_blank">ldionne@apple.com</a> <mailto:<a href="mailto:ldionne@apple.com" target="_blank">ldionne@apple.com</a>>> wrote:<br>
>> <br>
>> <br>
>> <br>
>>> On Apr 2, 2020, at 14:05, Duncan Exon Smith <<a href="mailto:dexonsmith@apple.com" target="_blank">dexonsmith@apple.com</a> <mailto:<a href="mailto:dexonsmith@apple.com" target="_blank">dexonsmith@apple.com</a>>> wrote:<br>
>>> <br>
>>>> It looks like the following bots assigned to you started failing recently:<br>
>>> <br>
>>> I agree the bots should be fixed, but...<br>
>>> <br>
>>>> I strongly suspect this is due to the fact that your builder is running as root. Libc++'s filesystem tests are known to fail when run as root, because some of them need to check for failure to access some files for which there's no permission. This doesn't seem to work when run as root.<br>
>>> <br>
>>> It seems like these tests could have a line like:<br>
>>> ```<br>
>>> REQUIRES: -user=root<br>
>>> ```<br>
>>> and libcxx's lit target could export a `user=root` feature when tests were being run as root.  WDYT?<br>
>>> <br>
>>> WDYT?<br>
>>> <br>
>> <br>
>> I think you mean `// UNSUPPORTED: -user=root`? Yes, I think it would make sense. Either that or actually spend the time to make them work as root.<br>
> <br>
> I meant `REQUIRES: !user=root`, I used the wrong negation.<br>
<br>
Although UNSUPPORTED is maybe more clear.<br>
<br>
> <br>
>> <br>
>> FWIW, I think the root cause of the issue is that "traverse" permissions in directories are not honoured when run as root:<br>
>> <br>
>>     root $ d=$(mktemp -d)<br>
>>     root $ touch $d/foo<br>
>>     root $ chmod 000 $d<br>
>>     root $ stat $d/foo<br>
>>     16777221 234259215 -rw-r--r-- 1 root wheel 0 0 <...><br>
>> <br>
>> When I would expect:<br>
>> <br>
>>     ldionne $ d=$(mktemp -d)<br>
>>     ldionne $ touch $d/foo<br>
>>     ldionne $ chmod 000 $d<br>
>>     ldionne $ stat $d/foo<br>
>>     stat: <...>/tmp.JoY6Ixmo/foo: stat: Permission denied<br>
>> <br>
>> Does that make sense? I didn't know 'root' had a free pass like that.<br>
>> <br>
>> Louis<br>
> <br>
> _______________________________________________<br>
> libcxx-dev mailing list<br>
> <a href="mailto:libcxx-dev@lists.llvm.org" target="_blank">libcxx-dev@lists.llvm.org</a> <mailto:<a href="mailto:libcxx-dev@lists.llvm.org" target="_blank">libcxx-dev@lists.llvm.org</a>><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/libcxx-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/libcxx-dev</a> <<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/libcxx-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/libcxx-dev</a>><br>
_______________________________________________<br>
linaro-toolchain mailing list<br>
<a href="mailto:linaro-toolchain@lists.linaro.org" target="_blank">linaro-toolchain@lists.linaro.org</a><br>
<a href="https://lists.linaro.org/mailman/listinfo/linaro-toolchain" rel="noreferrer" target="_blank">https://lists.linaro.org/mailman/listinfo/linaro-toolchain</a><br>
</blockquote></div>