Open System Services Programmer's Guide
renaming operation; propagation occurs after completion of the rename() function call. If both
of the following are true:
• An affected fileset and its mount point are managed by different OSS name server processes
• The renaming is followed immediately by an audited operation on a file in that fileset
Then the audit record produced by the latter operation might include a pathname that does not
reflect the renaming because the renaming propagation has not completed. For example, if an
audited fileset is mounted on /usr/src/projects/mine and the following function calls occur:
rename("/usr/src/projects", "/usr/src/tasks");
open("/usr/src/tasks/mine/main.c");
Then the pathname recorded for the audited open() call might be
/usr/src/projects/mine/main.c instead of /usr/src/tasks/mine/main.c.
The propagation delay depends on processor and system workloads and is normally a second or
less.
Example of Managing file Ownership
Example 58 provides an example of code demonstrating the use and effect of the getuid(),
geteuid(), getgid(), getegid(), setgid(), setregid(), and chown() functions in
managing file ownership.
256 Managing OSS Security