[SSI] openssi/kernel/fs compat_ioctl.c,1.1,1.2
John Hughes <[email protected]> Thu, 18 Feb 2010 17:04:27 +0000
| Newsgroups | gmane.linux.cluster.ssic.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ssic-linux/openssi/kernel/fs
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv30749
Modified Files:
Tag: 1
compat_ioctl.c
Log Message:
signal->tty doesn't exist in OpenSSI
Index: compat_ioctl.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/fs/compat_ioctl.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- compat_ioctl.c 18 Feb 2010 16:57:31 -0000 1.1
+++ compat_ioctl.c 18 Feb 2010 17:04:25 -0000 1.2
@@ -1526,7 +1526,13 @@
* To have permissions to do most of the vt ioctls, we either have
* to be the owner of the tty, or super-user.
*/
+
+#ifdef CONFIG_SSI
+ /* SSI_FIXME: don't we need to look at cttynode? (copied from vt.c) */
+ if (current->signal->cttydev == tty_devnum(tty) || capable(CAP_SYS_ADMIN))
+#else
if (current->signal->tty == tty || capable(CAP_SYS_ADMIN))
+#endif
return 1;
return 0;
}
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev