There may be a more elegant way to do this that requires giving fewer permissions to matlab under SELinux, but the following appears to work for me to get rid of the errors along the lines of the following:
/usr/local/matlab72/bin/glnx86/MATLAB: error while loading shared libraries: /usr/local/matlab72/bin/glnx86/../../sys/os/glnx86/libtermcap.so: cannot restore segment prot after reloc: Permission denied
One simply needs to enter the following commands (as root, or through sudo):
chcon -t texrel_shlib_t /usr/local/matlab72/sys/os/glnx86/*.so
chcon -t texrel_shlib_t /usr/local/matlab72/bin/glnx86/*.so
chcon -t texrel_shlib_t /usr/local/matlab72/toolbox/matlab/imagesci/private/*.mexglx
This may also work with newer (when they’re released) or older versions of MATLAB, though I’ve not tested them. According to the postings for other software packages that have had this problem, what MATLAB is doing is somehow bad programming practice, though I’ve not tracked down precisely what it is doing or why this might be bad. The alternatives that I’ve seen are either disabling SELinux entirely (rather ugly) or not running MATLAB (impossible ;-) ), and so this seems like a good solution.
Here’s the closest bit of information I could find on the Fedora Core 5 SELinux FAQ:
http://fedora.redhat.com/docs/selinux-faq-fc5/#faq-entry-unconfined_t
Just got this email moments ago. Hard to say what exactly was on those machines, but based on the financial aid information submitted yearly, there’s certainly personal information including addresses, phone numbers, social security numbers, and of course financial data about earnings and taxes for all those students and their parents. I’ve cut the last paragraph since it has an email and phone number to call in case you suspect your records were compromised. Drop me a comment if you need that contact info.
Northwestern University recently discovered that files containing names and personal identification information were on nine desktop computers that had been accessed by unauthorized persons from outside the University.
You are receiving this e-mail because you are one of as many as 17,000 individuals whose records have been identified as being stored on the computers in the Office of Admission and Financial Aid. Northwestern is continuing to investigate the incident to determine if additional records may have been involved. There is no indication that the unauthorized persons accessed any of the personal information, or were even aware of its existence on those computers.
As soon as the computer security breach was discovered, Northwestern’s technical support personnel shut down the affected computers. In compliance with University policies and privacy regulations, Northwestern is notifying the individuals for whom it has addresses whose information was stored on the computers.
While there is no indication that any personal information was accessed, Northwestern recommends that, as a precautionary measure, anyone who has provided Social Security number information to the University’s Office of Admission and Financial Aid follow the identity theft precautions published by the Federal Trade Commission:
1) Contact the fraud department of one of the three major credit bureaus listed below to check for irregularities on your credit report. You may also want to request that the credit bureaus issue a fraud alert on your accounts.
Credit Bureaus:
Equifax: 800-685-1111 (ordering report) / 800-525-6285 (fraud alert)
Experian: 888-397-3742 (ordering report and fraud alerts)
Trans Union: 800-888-4213 (ordering report) / 800-680-7289 (fraud alert)
2) Further information is available from the FTC by visiting http://www.ftc.gov or http://www.consumer.gov/idtheft/index.html or by calling toll-free 1-877-FTC-HELP (1-877-382-4357); TTY: 1-866-653-4261.