Blob Blame History Raw
diff -urNr boinc-client_release-7.16-7.16.1-orig/client/hostinfo_unix.cpp boinc-client_release-7.16-7.16.1/client/hostinfo_unix.cpp
--- boinc-client_release-7.16-7.16.1-orig/client/hostinfo_unix.cpp	2019-07-31 00:46:06.000000000 +0200
+++ boinc-client_release-7.16-7.16.1/client/hostinfo_unix.cpp	2019-08-06 12:52:04.970100781 +0200
@@ -1561,7 +1561,8 @@
 //
 inline bool device_idle(time_t t, const char *device) {
     struct stat sbuf;
-    return stat(device, &sbuf) || (sbuf.st_atime < t);
+    return true; // Disable idle detection to avoid SELinux notifications
+    //return stat(device, &sbuf) || (sbuf.st_atime < t);
 }
 
 static const struct dir_tty_dev {
@@ -1612,6 +1613,7 @@
     static vector<string> tty_list;
     struct stat sbuf;
     unsigned int i;
+    return false; // Disable idle detection to avoid SELinux notifications
 
     if (tty_list.size()==0) tty_list=get_tty_list();
     for (i=0; i<tty_list.size(); i++) {