Index: es_title.c =================================================================== RCS file: /home/products/cvstree/sw_c/common/os/es/es_title.c,v retrieving revision 1.142.10.5 retrieving revision 1.142.10.7 diff -r1.142.10.5 -r1.142.10.7 398a399,425 > __esCheckFilePermission(const u8 *file, IOSUid uid, IOSGid gid, u32 attr, > u32 ownerAcc, u32 groupAcc, u32 othersAcc) > { > ESError rv = ES_ERR_OK; > IOSUid uid2; > IOSGid gid2; > u32 attr2, ownerAcc2, groupAcc2, othersAcc2; > > > rv = ISFS_GetAttr(file, &uid2, &gid2, &attr2, &ownerAcc2, &groupAcc2, > &othersAcc2); > if (rv != ISFS_ERROR_OK) { > esPrint(ES_DEBUG_ERROR, "get file attr %s failed %d\n", file, rv); > goto out; > } > > if ((uid != uid2) || (gid != gid2) || (attr != attr2) || > (ownerAcc != ownerAcc2) || (groupAcc != groupAcc2) || > (othersAcc != othersAcc2)) { > esPrint(ES_DEBUG_ERROR, "check failed on file %s\n", file); > rv = ES_ERR_INVALID; > } > > out: > return rv; > } > 1160a1192,1200 > /* check the ownership and permission of /tmp/title.tmd file */ > rv = __esCheckFilePermission(tmpTmd, IOS_ROOT_ID, IOS_ROOT_GROUP, > 0, ISFS_RW_ACCESS, ISFS_RW_ACCESS, 0); > if (rv!=ES_ERR_OK) { > esPrint(ES_DEBUG_ERROR, "invalid permission of %s, rv %d\n", > tmpTmd, rv); > goto out; > } >