From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 14 Aug 1997 10:53:35 -0700 From: beto@ncube.com beto@ncube.com Subject: [9fans] /srv modes Topicbox-Message-UUID: 5ec1d0f2-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19970814175335.sVBs1LELLJYmFF6NgksiarvnGGw29shZHbePQVeAkdQ@z> Hi, I got a question about /srv/foo access permision. When you create a file onto /srv to post a fd, the modes you specify during the create are not relate to the modes that are checked during open. During the open the modes that are check are the modes on the referenced channel, and it check only for OREAD/OWRITE. This makes some sense for 9P connection to servers that provides authentication but it's a problem if you want to do something else. For example, it would be nice if I could post a fd for processes running under the same uid to share. For example I could create the file with 600, so only processes with my uid can read/write to it. Will it brake something if I changed devsrv.c to check first for permission on the file and then permission on the channel? Most fd are posted 666 (/srv/nfsserver.chat uses 600) so they shouldn't be affected???? Any comment would be appreciated?