Difference of calling external application and library

MrChefman (1)
Hello,

is there any difference in regard to attributes and autorization between calling an external program out of a C++ application or calling a library function out of this application.

Imagine, there is an external application and a dynamic library, both having user attributes.
When my main programm, running as root, is calling the programm or is calling a function in the library: is it done with user- or with root-attributes?
Zaita (2301)
If your application is running as root, anything it does is done as root. Unless you explicitly change user permissions.
Registered users can post here. Sign in or register to post.