Permission check update to libsysio.
b=12884
#define _CREDS_H_
/*
+ * Superuser's UID.
+ */
+#define _SYSIO_ROOT_UID 0
+
+/*
* Data structure for user credentials
*/
int creds_ngids;
};
+
+#ifdef _SYSIO_ROOT_UID
+/*
+ * Is caller the superuser?
+ */
+#define _sysio_is_root(_crp) \
+ ((_crp)->creds_uid == _SYSIO_ROOT_UID)
+#endif
#endif
err = -EACCES; /* assume error */
stat = &ino->i_stbuf;
do {
+#ifdef _SYSIO_ROOT_UID
+ /*
+ * Root?
+ */
+ if (_sysio_is_root(crp)) {
+ err = 0;
+ break;
+ }
+#endif
+
/*
* Owner?
*/