[Bug 1734] New: rtems_libio_set_private_env does not set euid, egid.

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Tue Feb 1 18:00:45 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1734

           Summary: rtems_libio_set_private_env does not set euid, egid.
           Product: RTEMS
           Version: HEAD
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: cpukit
        AssignedTo: joel.sherrill at oarcorp.com
        ReportedBy: bswimley at advanced.pro


Working with the rfs file system, I was creating files and directories via ftp
and could not access them via the shell.  The rfs uses euid and egid when
creating inodes.  

Both the shell and ftp utilize rtems_libio_set_private_env().

The shell does set euid and egid to zero, but only if rtems_shell_login() is
utilized.  The ftpd does not set these environment variables AFAIK.

I am not sure of the best resolution to this issue.  My temporary solution is
to memset the newly created environment to zero within
rtems_libio_set_private_env().  

Perhaps a better solution is to explicitly set these environment variables
within the shell, within ftpd, and within other components that specifically
use rtems_libio_set_private_env().

I welcome comments as to the best resolution of this issue.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list