[Cbe-oss-dev] [PATCH] libspe2: Fix permission to open SNR nodes
Kazunori Asayama
asayama at sm.sony.co.jp
Mon Aug 27 22:46:44 EST 2007
The current implementation of libspe2 uses 'O_RDWR' to open SNR nodes,
however the recent SPUFS no longer accepts read permission on these
nodes, so spe_signal_write() never succeed (without root
privilege). This patch fixes the problem.
Signed-off-by: Kazunori Asayama <asayama at sm.sony.co.jp>
OK to apply ?
---
spebase/create.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: b/spebase/create.c
===================================================================
--- a/spebase/create.c 2007-08-27 18:00:23.000000000 +0900
+++ b/spebase/create.c 2007-08-27 19:37:50.000000000 +0900
@@ -48,8 +48,8 @@ static const struct fd_attr spe_fd_attr[
[FD_WBOX] = { .name = "wbox", .mode = O_WRONLY },
[FD_WBOX_NB] = { .name = "wbox", .mode = O_WRONLY|O_NONBLOCK },
[FD_WBOX_STAT] = { .name = "wbox_stat", .mode = O_RDONLY },
- [FD_SIG1] = { .name = "signal1", .mode = O_RDWR },
- [FD_SIG2] = { .name = "signal2", .mode = O_RDWR },
+ [FD_SIG1] = { .name = "signal1", .mode = O_WRONLY },
+ [FD_SIG2] = { .name = "signal2", .mode = O_WRONLY },
[FD_MFC] = { .name = "mfc", .mode = O_RDWR },
[FD_MSS] = { .name = "mss", .mode = O_RDWR },
};
More information about the cbe-oss-dev
mailing list