SE support in tar 1.3.25?
I've just made a quick attempt at getting tar 1.3.25 working with SE support. The code has changed enough since the 1.3.19 version that the SE patch is against that not only do patches not apply in a working fashion, but I can't figure out what the code is actually doing.
If the NSA person who originally wrote the tar support could port it to the latest version of tar then that would be great.
Otherwise if someone else feels like giving it a go then that would be good too.
I've cc'd this message to Bdale, the Debian package maintainer for tar, I expect he could knock this up in 10 minutes if he's interested...
Signature · 9 lines
If you send email to me or to a mailing list that I use which has >4 lines of legalistic junk at the end then you are specifically authorizing me to do whatever I wish with the message and all other messages from your domain, by posting the message you agree that your long legalistic sig is void. -- You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 7 lines · Russell Coker
I've just made a quick attempt at getting tar 1.3.25 working with SE support. The code has changed enough since the 1.3.19 version that the SE patch is against that not only do patches not apply in a working fashion, but I can't figure out what the code is actually doing.
If the NSA person who originally wrote the tar support could port it to the latest version of tar then that would be great.
A person at MITRE originally implemented the SELinux tar modifications relative to the upstream tar-1.12 sources. A SELinux user (Shaun Savage) later made the initial effort to update those modifications to tar-1.13.19-6 SRPM for RH7.2, and the original implementor from MITRE then reviewed and revised that updated patch. However, the original implementor isn't actively involved in the project at the moment, so I'm not sure that he can work on updating it again.
The abstract concept for the tar modifications is simply to allow users to preserve the security contexts of files when they are archived, view the security contexts of files in an archive listing, and extract files from an archive with their original security contexts (if permitted by the security policy). As I recall, the implementation approach was to add a special file to the archive that contained the security context for each file, similar to the existing GNU tar support for long links. Unfortunately, a quick examination of the code indicates that the tar modifications assume a fixed maximum size for security contexts, so this assumption should be eliminated prior to merging this support into upstream sources.
--
Stephen D. Smalley, NAI Labs
[email protected]
--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.