This is the output of the modprobe command you gave me. So does that mean I am indeed running ath5k?
Code:
[Jon@Jon-Laptop ~]$ su -c '/sbin/modprobe -l | grep ath'
Password:
/lib/modules/2.6.25.6-55.fc9.i686/kernel/drivers/net/wireless/ath5k/ath5k.ko
/lib/modules/2.6.25.6-55.fc9.i686/kernel/drivers/md/multipath.ko
/lib/modules/2.6.25.6-55.fc9.i686/kernel/drivers/md/dm-multipath.ko
/lib/modules/2.6.25.6-55.fc9.i686/extra/madwifi/ath_hal.ko
/lib/modules/2.6.25.6-55.fc9.i686/extra/madwifi/ath_rate_sample.ko
/lib/modules/2.6.25.6-55.fc9.i686/extra/madwifi/ath_pci.ko
/lib/modules/2.6.25.6-55.fc9.i686/extra/madwifi/ath_rate_minstrel.ko
/lib/modules/2.6.25.6-55.fc9.i686/extra/madwifi/ath_rate_onoe.ko
/lib/modules/2.6.25.6-55.fc9.i686/extra/madwifi/ath_rate_amrr.ko
When I make the file in /etc/pm/config.d that you told me to, selinux troubleshooter comes up and gives me this output:
Code:
Summary:
SELinux is preventing the pm-suspend from using potentially mislabeled files
(/etc/pm/config.d/suspend_modules).
Detailed Description:
SELinux has denied pm-suspend access to potentially mislabeled file(s)
(/etc/pm/config.d/suspend_modules). This means that SELinux will not allow
pm-suspend to use these files. It is common for users to edit files in their
home directory or tmp directories and then move (mv) them to system directories.
The problem is that the files end up with the wrong file context which confined
applications are not allowed to access.
Allowing Access:
If you want pm-suspend to access this files, you need to relabel them using
restorecon -v '/etc/pm/config.d/suspend_modules'. You might want to relabel the
entire directory using restorecon -R -v '/etc/pm/config.d'.
Additional Information:
Source Context system_u:system_r:hald_t:s0
Target Context unconfined_u:object_r:user_home_t:s0
Target Objects /etc/pm/config.d/suspend_modules [ file ]
Source pm-powersave
Source Path /bin/bash
Port <Unknown>
Host Jon-Laptop
Source RPM Packages bash-3.2-22.fc9
Target RPM Packages
Policy RPM selinux-policy-3.3.1-69.fc9
Selinux Enabled True
Policy Type targeted
MLS Enabled True
Enforcing Mode Enforcing
Plugin Name home_tmp_bad_labels
Host Name Jon-Laptop
Platform Linux Jon-Laptop 2.6.25.6-55.fc9.i686 #1 SMP Tue
Jun 10 16:27:49 EDT 2008 i686 i686
Alert Count 2
First Seen Sat 28 Jun 2008 11:26:28 BST
Last Seen Sat 28 Jun 2008 11:27:17 BST
Local ID c0603fb5-76a0-43aa-8888-f28fdeff3ef9
Line Numbers
Raw Audit Messages
host=Jon-Laptop type=AVC msg=audit(1214648837.542:37): avc: denied { getattr } for pid=4025 comm="pm-suspend" path="/etc/pm/config.d/suspend_modules" dev=dm-0 ino=228876 scontext=system_u:system_r:hald_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file
host=Jon-Laptop type=SYSCALL msg=audit(1214648837.542:37): arch=40000003 syscall=195 success=no exit=-13 a0=89a2b98 a1=bf870080 a2=275ff4 a3=89a2b98 items=0 ppid=4022 pid=4025 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="pm-suspend" exe="/bin/bash" subj=system_u:system_r:hald_t:s0 key=(null)
You don't happen to know how to make a rule for this do you? I'd like to keep selinux on but I have absolutely no experience with it.
Thank you very much.