Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th December 2007, 03:18 AM
ajamison's Avatar
ajamison Offline
Registered User
 
Join Date: Sep 2006
Location: Dundee, Michigan
Age: 34
Posts: 1,207
SELinux blocking ifconfig and OpenOffice memory error

I have SELinux on and occationaly i get an alert saying that it blocked an attemp to delete a temp file generated by SSH I can only imaging this was intiated by the tmp watch script but I am not possitive on the matter

I will post the specific error in a few minutes I need to switch to Linux

Ok so maybe it is not a specific tmp watch error it appears to have something to do with the firewall.

Code:
Summary
    SELinux is preventing the /sbin/ifconfig from using potentially mislabeled
    files (/tmp/sh-thd-1197833845 (deleted)).

Detailed Description
    SELinux has denied /sbin/ifconfig access to potentially mislabeled file(s)
    (/tmp/sh-thd-1197833845 (deleted)).  This means that SELinux will not allow
    /sbin/ifconfig 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 /sbin/ifconfig to access this files, you need to relabel them
    using restorecon -v /tmp/sh-thd-1197833845 (deleted).  You might want to
    relabel the entire directory using restorecon -R -v /tmp.

Additional Information        

Source Context                system_u:system_r:ifconfig_t:s0
Target Context                system_u:object_r:rpm_script_tmp_t:s0
Target Objects                /tmp/sh-thd-1197833845 (deleted) [ file ]
Affected RPM Packages         net-tools-1.60-84.fc8 [application]
Policy RPM                    selinux-policy-3.0.8-64.fc8
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   plugins.home_tmp_bad_labels
Host Name                     f8desktop
Platform                      Linux f8desktop 2.6.23.8-63.fc8 #1 SMP Wed Nov 21
                              18:51:08 EST 2007 i686 i686
Alert Count                   2
First Seen                    Sun 16 Dec 2007 12:46:30 PM EST
Last Seen                     Sun 16 Dec 2007 12:46:30 PM EST
Local ID                      b43ff6aa-d40a-4bb7-8804-06470b99edf4
Line Numbers                  

Raw Audit Messages            

avc: denied { read } for comm=ifconfig dev=dm-0 egid=0 euid=0 exe=/sbin/ifconfig
exit=0 fsgid=0 fsuid=0 gid=0 items=0
path=2F746D702F73682D7468642D31313937383333383435202864656C6574656429 pid=19398
scontext=system_u:system_r:ifconfig_t:s0 sgid=0
subj=system_u:system_r:ifconfig_t:s0 suid=0 tclass=file
tcontext=system_u:object_r:rpm_script_tmp_t:s0 tty=(none) uid=0
Now I have tried to remedy this by the recomended steps and I even went as far as to relabel the entire drive. What I found is that only seems to fix it for a few days then this hapens again

Open Office seems to take advantage of some memory thing as well I had to edit the policy per the instructions in the folowing error to prevent the error from happening it would happen every time i loaded it


Code:
Summary
    SELinux is preventing /usr/lib/openoffice.org/program/swriter.bin from
    changing the access protection of memory on the heap.

Detailed Description
    The /usr/lib/openoffice.org/program/swriter.bin application attempted to
    change the access protection of memory on the heap (e.g., allocated using
    malloc).  This is a potential security problem.  Applications should not be
    doing this. Applications are sometimes coded incorrectly and request this
    permission.  The http://people.redhat.com/drepper/selinux-mem.html web page
    explains how to remove this requirement.  If
    /usr/lib/openoffice.org/program/swriter.bin does not work and you need it to
    work, you can configure SELinux temporarily to allow this access until the
    application is fixed. Please file a
    http://bugzilla.redhat.com/bugzilla/enter_bug.cgi against this package.

Allowing Access
    If you want /usr/lib/openoffice.org/program/swriter.bin to continue, you
    must turn on the allow_execheap boolean.  Note: This boolean will affect all
    applications on the system.

    The following command will allow this access:
    setsebool -P allow_execheap=1

Additional Information        

Source Context                system_u:system_r:unconfined_execmem_t:s0-s0:c0.c1
                              023
Target Context                system_u:system_r:unconfined_execmem_t:s0-s0:c0.c1
                              023
Target Objects                None [ process ]
Affected RPM Packages         openoffice.org-writer-2.3.0-6.7.fc8 [application]
Policy RPM                    selinux-policy-3.0.8-64.fc8
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   plugins.allow_execheap
Host Name                     f8desktop
Platform                      Linux f8desktop 2.6.23.8-63.fc8 #1 SMP Wed Nov 21
                              18:51:08 EST 2007 i686 i686
Alert Count                   2
First Seen                    Thu 06 Dec 2007 04:51:14 PM EST
Last Seen                     Tue 18 Dec 2007 06:51:30 PM EST
Local ID                      f76cbdfd-9350-4490-a5e1-fb8011e339e1
Line Numbers                  

Raw Audit Messages            

avc: denied { execheap } for comm=swriter.bin egid=500 euid=500
exe=/usr/lib/openoffice.org/program/swriter.bin exit=-13 fsgid=500 fsuid=500
gid=500 items=0 pid=828
scontext=system_u:system_r:unconfined_execmem_t:s0-s0:c0.c1023 sgid=500
subj=system_u:system_r:unconfined_execmem_t:s0-s0:c0.c1023 suid=500
tclass=process tcontext=system_u:system_r:unconfined_execmem_t:s0-s0:c0.c1023
tty=(none) uid=500
__________________
Andrew Jamison
IRC:ajamison5579
Linux Counter # 435228
-----------------
Wiki page helping to show appropriate Fedora versions of Ubuntu commands [url=https://fedoraproject.org/wiki/FedorianDictionary]Fedora Dictionary[/url <--- Outdated been very busy looking to update it soon

Last edited by ajamison; 20th December 2007 at 03:33 AM.
Reply With Quote
Reply

Tags
blocking, selinux, tmpwatch

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SELinux blocking synce MrMagoo Security and Privacy 9 13th July 2009 07:09 PM
SELinux is blocking my ipod ? iLLziLLa Security and Privacy 2 10th July 2009 11:37 AM
SELinux is blocking.........what? Judy Using Fedora 7 1st February 2008 12:06 AM
SELinux is blocking.........what? Judy Using Fedora 5 30th December 2007 11:01 PM
SELinux Blocking Certain Web Files? Cody Security and Privacy 19 3rd May 2006 07:14 AM


Current GMT-time: 13:43 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat