Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-8827] Incorrect file permissions in Swift 4.2 distribution for Ubuntu 16.04 #3630

Open
swift-ci opened this issue Sep 24, 2018 · 2 comments

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-8827
Radar None
Original Reporter jablair (JIRA User)
Type Bug
Environment

Ubuntu 16.04

Swift 4.2 release from https://swift.org/builds/development/ubuntu1604/swift-DEVELOPMENT-SNAPSHOT-2018-09-22-a/swift-DEVELOPMENT-SNAPSHOT-2018-09-22-a-ubuntu16.04.tar.gz

Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee None
Priority Medium

md5: 3f16f1aaebec1a195bde52f023dc302d

Issue Description:

In the Release and 9/22 Trunk Development Swift 4.2 distribution for Ubuntu, the files inside of /usr/lib/swift/CoreFoundation have their permissions set without being world-readable

-rw-r-----@  1 username  staff    31K Sep 22 13:07 CFArray.h
-rw-r-----@  1 username  staff   1.5K Sep 22 13:07 CFAsmMacros.h
-rw-r-----@  1 username  staff    12K Sep 22 13:07 CFAttributedString.h

As far as I can tell, the rest of the files in the distribution are set up as world-readable. For example:

-rw-r--r--@ 1 username  staff    13K Sep 22 13:46 PackageDescription.swiftdoc
-rw-r--r--@ 1 username  staff   105K Sep 22 13:46 PackageDescription.swiftmodule

Looking at both the 18.04 and 16.04 distributions, the files in the CoreFoundation directory are setup as world-writable.

As an apparent result of the permission issue, builds fail:

user:~/sandbox/project$ swift build 
/home/user/sandbox/project: error: manifest parse error(s): <unknown>:0: error: cannot open file '/opt/swift-4.2-RELEASE-ubuntu16.04/usr/lib/swift/CoreFoundation/module.modulemap': Permission denied
@swift-ci
Copy link
Contributor Author

Comment by Eric Blair (JIRA)

Added note - the Ubuntu 16.04 distribution for the Swift 4.2 Convergence build from 8/8 has the world-readable permission set on the contents of the CoreFoundation directory.

@mxcl
Copy link

mxcl commented Mar 1, 2019

I got this for the 4.2.3 tarball on 16.04. This bug has existed since the first releases of open source Swift according to my Google searches.

I don’t want to be a whiner, but it cannot help adoption if the default tarball cannot be used without googling.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants