LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-09-2022, 04:12 AM   #31
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834

Original Poster
Blog Entries: 17

Rep: Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642

Quote:
Originally Posted by pan64 View Post
there is no other way to start a process, but clone/fork and exec.
Subshell is just a new [bash] process started by the parent process.
Well, the I would recommend that you give auditd a go to check for youself. Like I said, context matters and how you invoke exec and this execute bash. Results vary widely as well, and I even gave you a practical example.

A simpler example if you don't know what I'm talking about is cgexec.
 
Old 06-09-2022, 04:21 AM   #32
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,982

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
so you want to examine cgexec? That is a quite different things. You need to pay attention to at least these two things:
1. what (app/process/binary) is executed or started
2. how is it started (= what environment is used to start it)
 
Old 06-09-2022, 02:30 PM   #33
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834

Original Poster
Blog Entries: 17

Rep: Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642
Quote:
Originally Posted by pan64 View Post
so you want to examine cgexec? That is a quite different things. You need to pay attention to at least these two things:
1. what (app/process/binary) is executed or started
2. how is it started (= what environment is used to start it)
Why are you just arguing and being difficult? Perhaps a more constructive approach would give you more joy?
 
Old 06-11-2022, 06:30 AM   #34
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,834

Original Poster
Blog Entries: 17

Rep: Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642
It might be useful to add these concepts in this thread:

Sandboxing Applications with Landlock (OSS 2021):
https://www.youtube.com/watch?v=ohoofZ62O98

In particular there is a section addressing how this could work for shells and nested shells, which might be interesting to some.
 
  


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 invoke a different java version ? sysmicuser Linux - Newbie 12 12-19-2017 07:53 AM
[SOLVED] BASH - Invoke commands when trap is activated worm5252 Programming 1 10-04-2011 04:54 PM
[SOLVED] How to invoke the calculator "bc" in bash script for floating point arithmetic? bluesmodular Programming 2 05-15-2010 11:58 PM
LXer: 15 Ways Nokia’s N900 Is Better Than Apple’s iPhone (and 5 ways it’s not) LXer Syndicated Linux News 0 11-14-2009 08:20 AM
have my .cshrc or .login invoke bash mattie_linux Linux - Newbie 1 06-06-2007 03:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:42 PM.

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