LinuxQuestions.org
Review your favorite Linux distribution.
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 10-21-2012, 05:10 PM   #1
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467
Blog Entries: 60

Rep: Reputation: 51
Wrapper program security?


Please be patient with me, as my knowledge of system level security is a bit superficial. I know that there are security infrastructures like AppArmor, GrSec, etc. that work on the kernel level to control access privileges in their various ways. And I've heard of the kernel sec capabilities that allow processes to limit their own privileges. However, is it possible to do something in between, i.e., start a program with another program, the latter limiting the access privileges of the former?

I use, for example, torsock, and throttling programs, to redirect/limit the connections/bandwidth of processes passed in on the command line - something to do with the preloader, I think. Could one make a similar program that say, prevents the child program from accessing the Internet, or prevents it from accessing (parts of) the file system? The idea being, for example, to input something like "safelaunch --no-internet-access somegame" at the command line and be confident that somegame wasn't sending data across the network.
 
Old 10-21-2012, 06:49 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I don't know if AppArmor network rules or Fedora's SELinux "sandbox" settings can be adjusted OTF but GRSecurity has sysctls that can be and so can the Iptables "owner" module be (given enough rights obviously) else maybe LD_PRELOAD a library that intercepts syscalls?
 
Old 10-22-2012, 06:37 AM   #3
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
You can limit capabilities of started processes with tools like execcap and sucap
 
  


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
How to create a wrapper function which uses libcrypto.so for security? vktafs Programming 27 10-21-2012 08:38 AM
howto create GUI-graphical wrapper for command line program SaintDanBert Linux - Desktop 4 01-30-2011 08:24 PM
LXer: High-security Linux project publishes conference program LXer Syndicated Linux News 0 12-12-2006 11:54 AM
Security Program C++ qcoder Programming 2 11-28-2003 05:21 PM
security opinion-program permissions Robert0380 Linux - Security 1 06-30-2003 06:43 AM

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

All times are GMT -5. The time now is 09:34 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