Changes between Version 1 and Version 2 of Ticket #68314, comment 10


Ignore:
Timestamp:
Oct 3, 2023, 12:48:50 PM (14 months ago)
Author:
macportsraf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #68314, comment 10

    v1 v2  
    55Thanks again for the bug report, and thanks for giving me motivation to set up my 10.4 laptop for macports testing.
    66
    7 However, I noticed a problem with `setreuid`/`setregid` on 10.4, which is needed by the LegacySupport implementation of `faccessat`. They return `0` but they aren't correct. They set the effective uid/gid but not the real uid/gid. This doesn't affect the automatic `make test` tests, because they aren't run setuid/setgid. But if someone manually runs `sudo make test_faccessat_setuid`, those tests would fail. Since the `faccessat` implementation has only just started working at all on other platforms, this probably isn't important, but I thought I should mention it. Maybe `setreuid` and `setregid` should/could be fixed as well (separately to this).
     7However, I noticed a problem with `setreuid`/`setregid` on 10.4, which is needed by the LegacySupport implementation of `faccessat`. They return `0` but they aren't correct. They set the effective uid/gid but not the real uid/gid. This doesn't affect the automatic `make test` tests, because they aren't run setuid/setgid. But if someone manually runs `sudo make test_faccessat_setuid`, those tests would fail. Since the `faccessat` implementation has only just started working at all on other platforms, this probably isn't important, but I thought I should mention it. Maybe `setreuid` and `setregid` should/could be fixed as well (separately to this). Or maybe the local system implementation on 10.4 should be accepted for what it is?