MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / testSetuid

Function testSetuid

src/dmtcp_launch.cpp:666–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664}
665
666static bool
667testSetuid(const char *filename)
668{
669 if (Util::isSetuid(filename) &&
670 strcmp(filename, "screen") != 0 && strstr(filename, "/screen") == NULL) {
671 static const char *theSetuidWarning =
672 "\n"
673 "**** WARNING: This process has the setuid or setgid bit set. This is\n"
674 "*** incompatible with the use by DMTCP of LD_PRELOAD. The process\n"
675 "*** will not be checkpointed by DMTCP. Continuing and hoping\n"
676 "*** for the best. For some programs, you may wish to\n"
677 "*** compile your own private copy, without using setuid permission.\n";
678
679 JASSERT_STDERR << theSetuidWarning;
680 sleep(3);
681 return true;
682 }
683 return false;
684}
685
686void
687testStaticallyLinked(const char *pathname)

Callers 1

mainFunction · 0.85

Calls 1

sleepFunction · 0.50

Tested by

no test coverage detected