2001-11-07 Jennifer Averett <jennifer@OARcorp.com>

Reported by Ibragimov Ilya <ibr@oktet.ru> and tracked as PR63.
	* libc/chdir.c: Check for search/execute permissions on chdir.
	This requires passing RTEMS_LIBIO_PERMS_SEARCH to
	rtems_filesystem_evaluate_path().
This commit is contained in:
Joel Sherrill
2001-11-07 23:54:59 +00:00
parent ff79cc570e
commit bc2db66fcb
4 changed files with 13 additions and 3 deletions

View File

@@ -33,7 +33,8 @@ int chdir(
* Get the node where we wish to go. * Get the node where we wish to go.
*/ */
result = rtems_filesystem_evaluate_path( pathname, 0, &loc, TRUE ); result = rtems_filesystem_evaluate_path(
pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, TRUE );
if ( result != 0 ) if ( result != 0 )
return -1; return -1;

View File

@@ -1,3 +1,10 @@
2001-11-07 Jennifer Averett <jennifer@OARcorp.com>
Reported by Ibragimov Ilya <ibr@oktet.ru> and tracked as PR63.
* libc/chdir.c: Check for search/execute permissions on chdir.
This requires passing RTEMS_LIBIO_PERMS_SEARCH to
rtems_filesystem_evaluate_path().
2001-10-26 Joel Sherrill <joel@OARcorp.com> 2001-10-26 Joel Sherrill <joel@OARcorp.com>
* libc/libio.c: Cleanup of initialization per suggestion from * libc/libio.c: Cleanup of initialization per suggestion from

View File

@@ -33,7 +33,8 @@ int chdir(
* Get the node where we wish to go. * Get the node where we wish to go.
*/ */
result = rtems_filesystem_evaluate_path( pathname, 0, &loc, TRUE ); result = rtems_filesystem_evaluate_path(
pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, TRUE );
if ( result != 0 ) if ( result != 0 )
return -1; return -1;

View File

@@ -33,7 +33,8 @@ int chdir(
* Get the node where we wish to go. * Get the node where we wish to go.
*/ */
result = rtems_filesystem_evaluate_path( pathname, 0, &loc, TRUE ); result = rtems_filesystem_evaluate_path(
pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, TRUE );
if ( result != 0 ) if ( result != 0 )
return -1; return -1;