IRC log for #fredlug on 20070524

00:19.06*** join/#fredlug Aaron__ (n=Aaron@pool-72-73-37-194.clppva.east.verizon.net)
00:54.40stickster_workplarsen_: Does setsebool -P not work for you?
01:00.41plarsen_stickster_work: doesn't look like it
01:00.52plarsen_it make no differencde. getsebool returned "true" but it kept refusing access to home directories.
01:01.02stickster_workGot audit on?
01:01.07plarsenyes
01:02.01stickster_workWhat does audit2allow tell you about the AVC denial?
01:02.01plarsenhang on, let me logon
01:06.47plarsenMay 23 21:06:11 infrastructure setroubleshoot:      SELinux is preventing the samba daemon from reading users home directories.      For complete SELinux messages. run sealert -l 9e95f311-8008-4162-95e9-390d3e7c9e7d
01:07.05stickster_workI wonder if FC4 needs a policy reload
01:07.12stickster_workYou might need to check the FC4 SELinux FAQ for that
01:07.14stickster_workIt's been a whlie
01:07.14plarsenthat's not FC4
01:07.17stickster_work*while
01:07.20stickster_workOh?
01:07.21plarsenSorry, I'm always multitasking
01:07.24plarsenThat's CentOS5
01:07.27stickster_workAh
01:07.28plarsenBasically FC6
01:07.31stickster_workRHEL5 docs then
01:07.48plarsenyep
01:08.42plarsenRaw Audit Messages
01:08.43plarsenavc: denied { read } for comm="smbd" dev=dm-0 egid=500 euid=500
01:08.43plarsenexe="/usr/sbin/smbd" exit=-13 fsgid=500 fsuid=500 gid=0 items=0 name="plarsen"
01:08.43plarsenpid=8721 scontext=root:system_r:smbd_t:s0 sgid=0 subj=root:system_r:smbd_t:s0
01:08.43plarsensuid=0 tclass=dir tcontext=root:object_r:home_root_t:s0 tty=(none) uid=500
01:10.08plarsenwhat pars do I give "audit2allow" ?
01:12.30plarsenallow smbd_t home_root_t:dir { read search };
01:12.34plarsenallow smbd_t home_root_t:file getattr;
01:12.38plarsenallow smbd_t rpm_script_tmp_t:dir getattr;
01:12.42plarsenallow smbd_t rpm_script_tmp_t:file getattr;
01:12.46plarsenallow smbd_t samba_share_t:sock_file getattr;
01:12.46stickster_workIf you bring that to a file, audit2allow -i <file>
01:12.50plarsenallow smbd_t tmp_t:file getattr;
01:12.54plarsenallow smbd_t tmp_t:sock_file getattr;
01:12.58plarsenallow smbd_t xdm_tmp_t:dir getattr;
01:12.58plarsenallow smbd_t xdm_tmp_t:file getattr;
01:12.59plarsenallow smbd_t xdm_tmp_t:sock_file getattr;
01:13.00plarsenallow smbd_t xfs_tmp_t:dir getattr;
01:13.00plarsenThat's if I just do an audit2allow -i /var/log/audit/audit.log
01:13.06stickster_workYeah, probably too much
01:13.07plarsenDidn't know if I needed one of those "analyst" things
01:14.44plarsenso does that make any sense to you?
01:15.55stickster_workYeah, but I'm pretty sure that may be grabbing too much
01:16.27stickster_workWhat's your '/usr/sbin/getsebool -a | grep samba' show?
01:17.08plarsen[root@infrastructure ~]# /usr/sbin/getsebool -a | grep samba
01:17.08plarsensamba_enable_home_dirs --> on
01:17.08plarsensamba_share_nfs --> off
01:17.08plarsenuse_samba_home_dirs --> off
01:17.27plarsenDidn't know about the last one
01:17.30plarsenIs that the issue?
01:17.40plarsenI think I read that it may be "remote" use .....
01:18.53plarsennope .. didn'thelp
01:23.16stickster_workYeah, you're correct, that's for home directories via Samba
01:23.51plarsen[root@infrastructure ~]# !481
01:23.52plarsen/usr/sbin/getsebool -a | grep samba
01:23.53plarsensamba_enable_home_dirs --> on
01:23.53plarsensamba_share_nfs --> off
01:23.53plarsenuse_samba_home_dirs --> on
01:24.00plarsenThat's now ... .and it still doesn't work.
01:24.46plarsenI even tried to enable "samba_share_nfs" and that didn't work either.
01:25.08stickster_workplarsen: I don't think that will help this case
01:25.17stickster_workplarsen: Can you set Samba to not parse through root's home directory?
01:25.43plarsennope, me neither ....
01:25.43stickster_workThat seems to be the hangup in the AVC message you posted
01:25.43plarsenIt shouldn't?
01:25.44plarsenRoot's home is /root
01:25.51stickster_workAh, wait!
01:25.59plarsenthe share defines /home/%u
01:26.02stickster_workroot_home_t is "something in /home with root ownership"
01:26.10stickster_worksorry, home_root_t
01:26.42stickster_workSo check /home for things owned by root
01:26.47plarsenbesides /home itself, everything is not owned by root
01:27.08plarsen[root@infrastructure ~]# ll -a /home
01:27.20plarsentotal 56
01:27.24stickster_workcheck in /home/plarsen
01:27.24plarsendrwxr-xr-x  7 root      root 4096 May 18 22:33 .
01:27.28plarsendrwxr-xr-x 24 root      root 4096 May 23 09:18 ..
01:27.32plarsendrwxr-xr-x  2 dpkennedy hms  4096 May 18 22:30 dpkennedy
01:27.36plarsendrwxr-xr-x  2 mperedo   hms  4096 May 18 22:33 mperedo
01:27.48plarsendrwxr-xr-x  2 ngoyal    hms  4096 May 18 22:31 ngoyal
01:27.50plarsendrwxr-xr-x  2 plarsen   hms  4096 May 18 22:26 plarsen
01:27.50plarsendrwxr-xr-x  2 vtandale  hms  4096 May 18 22:28 vtandale
01:28.19plarsennope ... there's nothin in there but skelton ...
01:28.24plarsen3 dot files
01:28.28plarsenall owned by the user plarsen
01:28.34stickster_workhmm
01:29.26plarsenyeah, excatly
01:30.06stickster_workfind -context '*home_root_t*'
01:30.22plarsenfrom what dir?
01:30.26plarsen<PROTECTED>
01:30.29stickster_workyup
01:30.51plarsenall files
01:31.30stickster_workwell, you could search -type d since the AVC denied is on a dir
01:32.02plarsen[root@infrastructure ~]# find /home//plarsen -context '*home_root_t*'
01:32.03plarsen/home//plarsen
01:32.03plarsen/home//plarsen/.bashrc
01:32.03plarsen/home//plarsen/.bash_profile
01:32.04plarsen/home//plarsen/.bash_logout
01:32.14stickster_workthose are wrong then
01:32.23plarsenlooks like it ....
01:32.36stickster_workThose should all be user_home_t
01:33.05plarsen"restorecon /home" didn't fix it.
01:33.10stickster_workAnd your ls -Z /home shows that plarsen is user_home_dir_t, right?
01:33.27plarsennope ...
01:33.30plarsenhome_root_t
01:33.33plarsenall of them.
01:33.37stickster_workThat's all wrong then
01:33.42stickster_workrestorecon -R /home
01:33.47stickster_workNeeds to be recursive
01:34.06plarsenGRRRR - had I know that it would have bene fixed this afternoon;)
01:34.13stickster_workman restorecon ;-)
01:34.14plarsenok, they changed ... let's see if that helped.
01:34.19plarsenlol - yeah
01:34.35plarsenWOOOHOOO
01:34.43plarsenOk ... where did you see the root_t thing?
01:34.44stickster_workdisco
01:34.49stickster_work?
01:34.52stickster_workOh, OK:
01:35.04stickster_work21:08:24 < plarsen> avc: denied { read } for comm="smbd" dev=dm-0 egid=500  euid=500
01:35.07stickster_work21:08:24 < plarsen> exe="/usr/sbin/smbd" exit=-13 fsgid=500 fsuid=500 gid=0  items=0 name="plarsen"
01:35.11stickster_work21:08:24 < plarsen> pid=8721 scontext=root:system_r:smbd_t:s0 sgid=0  subj=root:system_r:smbd_t:s0
01:35.14stickster_work21:08:24 < plarsen> suid=0 tclass=dir tcontext=root:object_r:home_root_t:s0  tty=(none) uid=500
01:36.02plarsenI wonder if useradd has a bug  ..... they were just created today
01:36.08stickster_workSo that says that smbd had a problem reading a dir object named "plarsen" which is a directory, where it hit a context of root:object_r:home_root_t, which is disallowed
01:36.19stickster_workDid you maybe have selinux disabled when you did the useradds?
01:36.29plarsenno
01:36.31stickster_workHm, no, that would have been no context
01:36.43plarsenIt was quite a while before I relized it was an se error
01:36.54plarsenI've been staring at the smb message that it was denied access to /home/plarsen
01:37.21stickster_workIt sometimes helps to have SELinux messages for audit get echoed to all terminals if you're not using a desktop
01:37.53plarsenwell, I am - this is actually running in aVM ... I do most of my stuff from terminals.
01:38.07plarsenI got the stuff into the /var/log/messages now ... so I'll see the messages
01:38.21plarsenWhich is good .... it's the first log file I consult.
01:38.31stickster_workYeah, or just tail the audit.log somewhere while you work
01:38.51stickster_workThis is a very good use of D-Bus by the setroubleshoot/sealert stuff -- you can see problems pop up a notification when they happen
01:39.13plarsenI had a DNS error message that I finally found was due to IPv6 ... it was flooding my logfiles.
01:39.30plarsenI've seen them; but you only see "but so many" :)
01:39.46plarsenIf multiple stuff happens you still have to load the program. But I'm glad it's getting more automated.
01:39.50stickster_workSo that AVC message tells you the *name* of the object being accessed, the *scontext* (source context), the *tcontext* (target context), and of course other factors
01:40.05plarsenI actually generated policies today to allow samba to share non /home files.
01:40.05stickster_workAlso *class* (type of object, like "dir", "file", "pipe", etc.)
01:40.40plarsenand as long as you remember the base policies that SHOULD be in effect, you can look for abnormalities.
01:41.07plarsenI like the 'sealert' command
01:41.21plarsenVery nice and detailed output. Even a little hint, although that didn't help me this time.
01:41.50plarsenAre the bools I've set permanent?
01:41.55plarsensebools*
01:42.06stickster_workYes, if you used setsebool -P
01:42.12stickster_workBut you can disable them the same way
01:42.28stickster_workOtherwise they persist until changed during this uptime
01:42.42stickster_workBy you or a policy change
01:42.47plarsenfigured so. I looked for a config file, but didn't find it.
01:43.14stickster_workYeah, the policy is in /etc/selinux/targeted/policy/policy.*
01:43.20stickster_workcompiled form, tho'
01:43.23plarsenSo how would I export selinux settings and import them on a different system?
01:43.36plarsenyeah, binary ;)
01:44.42stickster_workYou may need the tools package for that
01:44.55stickster_workI think it's selinux-policy-devel
01:45.26plarsengood thinking:)
01:45.38plarsenGOASH - I love my local yum mirror :)
01:45.47stickster_workYup, life with 'em is good
01:46.45stickster_workYou may want to check out http://www.gurulabs.com/goodies/YUM_automatic_local_mirror.php for some ideas
01:47.01stickster_workAlso mirrormanager
01:47.37plarsenuhmmm  - I did get it working though. A bit of trial and error. However, I didn't make it able to deal with multiple releases ...
01:47.54plarsenI'll setup an up2date mirror tomororw - if I get time
01:48.06stickster_workI have a mirror at work that serves FC5, FC6, and Rawhide
01:48.22stickster_workI just use a homegrown script and rsync to do the heavy lifting nightly
01:48.38plarsenright - me too :)
01:48.43plarsenwell, script and script
01:48.46plarsenjust a set of commands ;)
01:48.59plarsenmainly rsync and the buildrepo
01:49.24stickster_workAll right, I'm not getting any work done... need to bug out for a bit.
01:50.16plarsen:) ok.
01:50.29plarsenThanks for the help here ... maybe one day I'll truely understand SElinux :)
02:04.45stickster_worknp
02:04.54stickster_workIt's not as hard as it seems
02:05.03stickster_workTrust me, I was in exactly the same bind not too long ago
02:05.23stickster_workDan Walsh has some great information on the Fedora wiki, but much of it has probably been grabbed in the RHEL5 guide
14:29.43*** join/#fredlug jsmith (n=jsmith@69-94-196-106.biltmorecomm.com)
15:30.21*** join/#fredlug plarsen (n=plarsen@w158.z06400088.was-dc.dsl.cnc.net)
18:02.53jsmithstickster_work: Dayumn... since when will yelp read DocBook files?
18:04.19jsmithstickster_work: Is there a yelp-tui by chance?
18:05.29stickster_workjsmith: Ha, we wish!
18:05.44stickster_workNo, it uses mozilla for the rendering engine I believe
18:06.08stickster_workyeah, gtkembedmoz
18:06.22stickster_workI've been using it for this for the better part of a year I think
18:06.35stickster_workFaster than validate, build, refresh
18:06.38jsmithFigures... does it use an XSLT stylesheet to render the HTML?  Or is it hard-coded?
18:06.44stickster_workCorrect
18:06.57stickster_workI mean, the first -- /usr/share/yelp/xslt/
18:07.10jsmithMan, that XSLT stylesheet is slick!
18:07.13jsmithI like it.
18:08.43stickster_workI'm going to try and get some time to hack our FDP XSLT a bit after F7 GA
18:09.39jsmithMan, the yelp one didn't work with xsltproc
18:09.48jsmithhmmmn.... be right back
18:21.32stickster_workjsmith: Yeah, the yelp namespace is probably meaningless outside the yelp program
18:22.28jsmithSo, is there a good XSLT that looks like what yelp shows that I can use with xsltproc?
18:28.46jsmithYuck... the output of yelp -> cups-pdf -> PDF file is garbled :-(
18:32.29stickster_workjsmith: Really?
18:32.44stickster_workIt's a tiny bit plainer (missing admonition icons) in F7 but very readable
18:34.42jsmithYes sir... you want I should send output you?
18:34.50stickster_worksure
18:36.10jsmithRe-printing, just to make sure it wasn't a doober
18:38.45jsmithOn its way to your gmail acct.
18:39.44jsmithI'm watching all the Asterisk developers have a gpg key-signing party
18:41.00jsmithHmmmn... also appears that yelp doesn't like sidebars
18:41.51stickster_workYou're on slow connection, right?
18:42.01stickster_workSo sending you mine is probably not helpful ;-)
18:42.54stickster_workhaven't received yours yet
19:05.10jsmithNo, I'm on a good connection
19:05.49jsmithWhat was the name of that collaborative editor?
19:06.45jsmithstickster_work: Did it end up on your spam filter?
19:06.52stickster_workNo, I have it
19:06.56stickster_workSorry, was away
19:07.04stickster_workI just rendered it here and it looks just hunky-dory
19:07.08jsmithAs was I.... had to read my gpg fingerprint out loud
19:07.08stickster_workyelp ch11.xml
19:07.12stickster_work(Print to PS)
19:07.22jsmithTo PS, or to PDF?
19:07.31stickster_workps2pdf -dEmbedAllFonts=true -dPDFSETTINGS=/ebook ch11.ps
19:07.44jsmithI installed cups-pdf, and printed it to the cups-pdf printer
19:07.49jsmithLet me try that...
19:07.50stickster_workOh, I haven't done that
19:16.45jsmithHmmmn... Print to File didn't seem to do anything.
19:16.52jsmithSo I tried to load my whole book in yelp
19:17.07jsmithCertainly caused my laptop to heat up
19:20.11stickster_workI'm using Rawhide, so may be differences based on that
19:20.21jsmithAh, very well could be
19:20.26jsmithDid you try with cups-pdf by chance?
19:20.33jsmithJust curious... I don't mean to waste your time
19:20.44stickster_workjsmith: Not yet... gimme a sec, trying on home FC6 box
19:23.35jsmithOooh... I think I found a bug in Yelp!
19:25.41stickster_workThere's bound to be some :-)
19:26.36jsmithWell, maybe not...
19:29.06*** join/#fredlug stickster (n=stickste@fedora/stickster)
19:30.50*** join/#fredlug jsmith (n=jsmith@69-94-196-106.biltmorecomm.com)
19:31.22jsmithMan, I had my laptop working great before the "big crash"
19:31.35jsmithNow, suspend doesn't work and the wirless flakes out every 15 minutes or so
19:32.28sticksterI remember I had to add some /etc/pm/hooks for suspend in FC6 here
19:36.59jsmithI don't think I did... but I did mess around with pbbuttonsd and stuff... but I don't think I actually used it.
19:37.12jsmithSeems like there was some other package for powerbooks that wasn't as invasive as pbbuttonsd
19:37.18jsmithBut I can't remember it
21:13.20*** join/#fredlug jsmith (n=jsmith@69-94-196-204.biltmorecomm.com)
21:56.04*** join/#fredlug stickster_ (n=stickste@fedora/stickster)
22:01.46jsmithMy desktop got really clean when my hard drive crashed
22:02.06stickster_homeheh
22:02.14stickster_homeI've done *that* before, this way is better :-D
22:02.19jsmithObviously
22:02.30stickster_homesorry, didn't mean to laugh at your expense :-(
22:02.35jsmithNo, that's fine
22:02.52stickster_home"No, no, go on... laugh all you want... I'll be (snif) OK..."
22:03.20jsmithI chuckled
22:03.37stickster_homeYou knew that beagle is being sidelined for F7, right?
22:03.53stickster_homeIt'll be there and installable, but its aggressiveness is causing real problems for laptop users
22:04.17stickster_homeUntil the developers can start finding better heuristics for deciding when to index, it's not going to default to "on"
22:05.16stickster_homeOK, dinner on the way....
22:23.54jsmithYes, I saw that.
22:24.23jsmithIt's in the manifest, but until it stops eating people's cpus (mine included), it won't get installed except on an upgrade

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.