LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-30-2023, 12:45 PM   #1
tomislav91
Member
 
Registered: Apr 2012
Posts: 46

Rep: Reputation: Disabled
prevent .exe apparmor_parser


0


i want to prevent of opening any wine app instead of ONE i created file /etc/apparmor.d/usr.bin.wine
Code:
#include <tunables/global>

/usr/bin/wine {
  #include <abstractions/base>
  #include <abstractions/nameservice>

  /home/user/.wine/dosdevices/c:/users/user/Documents/FOLDER_TO_ALLOW/** r,
  /home/user/.wine/dosdevices/c:/users/user/Documents/FOLDER_TO_ALLOW/** mr,

  !/home/user/.wine/dosdevices/c:/Program\ Files\ \(x86\)/FOLDER_TO_PREVENT/**,
  !/home/user/.wine/dosdevices/c:/Program\ Files\ \(x86\)/FOLDER_TO_PREVENT/** mr,
}
but both of .exe in that fodlers can be run. I did this and restart did
Code:
sudo apparmor_parser -r /etc/apparmor.d/usr.bin.wine
Where i have mistaken?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cygwin g++-3.exe, gcc-3.exe corrupted to g++3.exe.dam and gcc-3.exe.dam pawanjanbandhu Linux - Newbie 2 12-03-2009 11:27 AM
cygwin g++-3.exe, gcc-3.exe corrupted to g++3.exe.dam and gcc-3.exe.dam pawanjanbandhu Linux - Software 1 11-17-2009 02:26 PM
samba compatibility with microsoft srvtools.exe (usrmgr.exe and srvmgr.exe) checkmate3001 Linux - Software 1 09-06-2008 05:08 AM
problem on /proc/self/exe and /proc/num/exe snowing Programming 6 08-31-2006 01:17 AM
SETUP.EXE/autorun.exe don't run in wine mst3kman Linux - Games 3 01-22-2006 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration