test/lib/jdk/test/lib/Platform.java
changeset 58144 d003b3ef8b60
parent 55757 07e998f8f816
child 58679 9c3209ff7550
child 59162 09b295eb214b
equal deleted inserted replaced
58143:b35771556cd0 58144:d003b3ef8b60
   263                     (PrivilegedExceptionAction<RandomAccessFile>) () -> new RandomAccessFile(deny_ptrace, "r"))) {
   263                     (PrivilegedExceptionAction<RandomAccessFile>) () -> new RandomAccessFile(deny_ptrace, "r"))) {
   264                 if (file.readByte() != '0') {
   264                 if (file.readByte() != '0') {
   265                     return false;
   265                     return false;
   266                 }
   266                 }
   267             } catch (PrivilegedActionException e) {
   267             } catch (PrivilegedActionException e) {
   268                 @SuppressWarnings("unchecked")
       
   269                 IOException t = (IOException) e.getException();
   268                 IOException t = (IOException) e.getException();
   270                 throw t;
   269                 throw t;
   271             }
   270             }
   272         }
   271         }
   273 
   272 
   287 
   286 
   288                 if (!userName.equals("root") && yama_scope != '0') {
   287                 if (!userName.equals("root") && yama_scope != '0') {
   289                     return false;
   288                     return false;
   290                 }
   289                 }
   291             } catch (PrivilegedActionException e) {
   290             } catch (PrivilegedActionException e) {
   292                 @SuppressWarnings("unchecked")
       
   293                 IOException t = (IOException) e.getException();
   291                 IOException t = (IOException) e.getException();
   294                 throw t;
   292                 throw t;
   295             }
   293             }
   296         }
   294         }
   297         // Otherwise expect to be permitted:
   295         // Otherwise expect to be permitted: