Difference of calling external application and library


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?
If your application is running as root, anything it does is done as root. Unless you explicitly change user permissions.
Topic archived. No new replies allowed.