#1734 closed defect (invalid)

rtems_libio_set_private_env does not set euid, egid.

Reported by: Brett Swimley Owned by: Joel Sherrill
Priority: normal Milestone: 4.11
Component: score Version: 4.11
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

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.

Change History (2)

comment:1 Changed on Feb 7, 2011 at 7:41:46 PM by Brett Swimley

Resolution: invalid
Status: newclosed

Further investigation indicates that there is not a problem in rtems_libio_set_private_env().

Sorry about the false bug report.

Brett Swimley

comment:2 Changed on Nov 24, 2014 at 6:58:28 PM by Gedare Bloom

Version: HEAD4.11

Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11

Note: See TracTickets for help on using tickets.