diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-22 07:56:57 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-01-05 14:29:09 +0100 |
commit | f9f7321e0a7d6f1178687668bec7fe2edb378d42 (patch) | |
tree | 8793dff4f74f616291084b08db3e2652bade344c /cpukit/libfs/src/imfs/imfs_chown.c | |
parent | 173c44eba4e64967a30cc608853b54bb08bdc3c0 (diff) |
Filesystem: Remove superfluous permission checks
The permission is check by the upper layer.
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_chown.c')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_chown.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_chown.c b/cpukit/libfs/src/imfs/imfs_chown.c index 9f96133556..ca48eee006 100644 --- a/cpukit/libfs/src/imfs/imfs_chown.c +++ b/cpukit/libfs/src/imfs/imfs_chown.c @@ -30,24 +30,10 @@ int IMFS_chown( gid_t group ) { - IMFS_jnode_t *jnode; -#if defined(RTEMS_POSIX_API) - uid_t st_uid; -#endif + IMFS_jnode_t *jnode; jnode = (IMFS_jnode_t *) loc->node_access; - /* - * Verify I am the owner of the node or the super user. - */ - -#if defined(RTEMS_POSIX_API) - st_uid = geteuid(); - - if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) - rtems_set_errno_and_return_minus_one( EPERM ); -#endif - jnode->st_uid = owner; jnode->st_gid = group; |