Comment 1 for bug 2028376

Revision history for this message
Sven Kieske (s-kieske) wrote :

that's weird, afaik this permission get set upstream here:

https://github.com/opensearch-project/OpenSearch/blob/611ecc2ad50c7e1833e7fe8ef2a6cabeb6028c57/distribution/packages/build.gradle#L216C15-L216C20

```
    from("${packagingFiles}") {
      dirMode 02750
      into('/etc')
```

dirMode should be calculated - speculating here, because I don't know much about gradles usage of the "ospackage" lib here and how that works - like chmod manpage[0] claims:

 S_ISGID (02000)
              set-group-ID (set process effective group ID on execve(2);
              mandatory locking, as described in fcntl(2); take a new
              file's group from parent directory, as described in
              chown(2) and mkdir(2))

so it set's the groupid bit then rwx bits for the user and read and execute bits for the group.

So this seems to be a failure upstream I suppose, but will investigate further.

[0]: https://man7.org/linux/man-pages/man2/chmod.2.html