Thursday, February 4, 2010

Cleaning the DXR Repo

Stage 1 (Throwing out the trash):

DXR Repository = Messier than a teenager's room. There were too many unnecessary old package versions in the DXR repository so I decided to just keep the newest ones. The platform directories are now a lot easier to look at and do not give me a headache. With an added bonus, it helped to save disk space :)

Stage 2 (Where oh where did all the source packages go?):

After the clean out, I soon realized that there were many source rpms missing. (I will be creating a separate post after this one, listing which source packages are needed).

Stage 3 (seLinux, let me in!):

I tried testing to see if yumdownloader would work, and as prior to my last post, it was quite the struggle.

Command: yumdownloader --source viewsource

Result: *PUKE* (just kidding).... [Errno 14] HTTP Error 403: Forbidden

So, obviously a permission error. I tested out to see if it was a simple file permission (chmod) fix, but of course it wasn't (that would be way too easy right?) I soon learned that it could be seLinux. I messaged my buddy and viewsource packager Jonathan Deni for some assistance since I knew he had recently had some issues with seLinux as well....

So long story short, after comparing the security context between /repodata/repomd.xml and /DXR/index.html it was clear to see that they had different security TYPES.

One was home directory content, the other was httpd content and since seLinux policy prohibits home directory content from being served, voila!

restorecon -r /var/www/html = looked up types based on the location within the filesystem

Stage 4 (Making things pretty and easy):


Enough said.

No comments:

Post a Comment