The absence of a strong AutoCAD alternative
(native to linux) had been a source of concern for me. I had waitied so long for a good CAD software for Linux and its here ... Bricscad v10.
http://www.bricsys.com/en_INTL/ What a relief for Linux Architects & Engineers!
Now there is a new problem. SELinux won't allow it in Fedora and Bricsys supports only Red Hat & Ubuntu. I'm stuck again. Any idea how to make SELinux more merciful in my case? Meanwhile, their TGZ version works quite well (... but It'll be nice to run things normally)
Here is the SELinux Alert:
Summary:
Code:
SELinux is preventing /opt/bricsys/bricscad/v10/bricscad from loading
/opt/bricsys/bricscad/v10/libBrxGeo.so which requires text relocation.
Detailed Description:
The bricscad application attempted to load
/opt/bricsys/bricscad/v10/libBrxGeo.so which requires text relocation. This is a
potential security problem. Most libraries do not need this permission.
Libraries are sometimes coded incorrectly and request this permission. The
SELinux Memory Protection Tests
(http://people.redhat.com/drepper/selinux-mem.html) web page explains how to
remove this requirement. You can configure SELinux temporarily to allow
/opt/bricsys/bricscad/v10/libBrxGeo.so to use relocation as a workaround, until
the library is fixed. Please file a bug report.
Allowing Access:
If you trust /opt/bricsys/bricscad/v10/libBrxGeo.so to run correctly, you can
change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/opt/bricsys/bricscad/v10/libBrxGeo.so'" You must also change the default file
context files on the system in order to preserve them even on a full relabel.
"semanage fcontext -a -t textrel_shlib_t
'/opt/bricsys/bricscad/v10/libBrxGeo.so'"
Fix Command:
chcon -t textrel_shlib_t '/opt/bricsys/bricscad/v10/libBrxGeo.so'
Additional Information:
Source Context unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
023
Target Context system_u:object_r:lib_t:s0
Target Objects /opt/bricsys/bricscad/v10/libBrxGeo.so [ file ]
Source bricscad
Source Path /opt/bricsys/bricscad/v10/bricscad
Port <Unknown>
Host ambassador
Source RPM Packages bricscadv10-10.4.4-1
Target RPM Packages bricscadv10-10.4.4-1
Policy RPM selinux-policy-3.6.32-89.fc12
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Plugin Name allow_execmod
Host Name ambassador
Platform Linux ambassador 2.6.31.12-174.2.3.fc12.i686 #1
SMP Mon Jan 18 20:22:46 UTC 2010 i686 i686
Alert Count 1
First Seen Sat 15 May 2010 02:54:40 AM WAT
Last Seen Sat 15 May 2010 02:54:40 AM WAT
Local ID cf5eba89-da53-4db7-b0a4-726d3282b67e
Line Numbers
Raw Audit Messages
node=ambassador type=AVC msg=audit(1273888480.734:26): avc: denied { execmod } for pid=2522 comm="bricscad" path="/opt/bricsys/bricscad/v10/libBrxGeo.so" dev=sdb3 ino=284435 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file
node=ambassador type=SYSCALL msg=audit(1273888480.734:26): arch=40000003 syscall=125 success=no exit=-13 a0=22c5000 a1=215000 a2=5 a3=bff9d500 items=0 ppid=2512 pid=2522 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=pts1 ses=1 comm="bricscad" exe="/opt/bricsys/bricscad/v10/bricscad" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)