Public bug reported:

Hello, there's a chmod(777) in a snapcraft plugin that's probably far
too wide. 1777 sometimes makes sense on directories but most systems
will only have a handful of such directories.

                    os.chmod(
                        path,
                        stat.S_IRUSR
                        | stat.S_IWUSR
                        | stat.S_IXUSR
                        | stat.S_IRGRP
                        | stat.S_IWGRP
                        | stat.S_IXGRP
                        | stat.S_IROTH
                        | stat.S_IWOTH
                        | stat.S_IXOTH,
                    )

in
https://github.com/snapcore/snapcraft/blob/3dca4d860ed0a59f63b70e9e7288dc06027fbcbf/snapcraft/plugins/v1/autotools.py#L90

Can this be reduced to something tighter?

Thanks

** Affects: snapcraft (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1951645

Title:
  chmod 777 in autotools plugin

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapcraft/+bug/1951645/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to