Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • charlezcharlez
    Participant
      Post count: 18

      Hi,
      Running HS V4.12 on a Debian VM. Not a a version that you can download here.
      Everything works for years.
      Few versions back Gira changed the permissions that the hs_main process no longer runs under root.
      Preventing to create RAW sockets
      This is making that ping with this building block is not working.
      Gira had the same issue in V4.9.
      Not sure how they solved it that raw socket is allowed again.

      Getting this error.
      File “<12242_Hostcheck_0>”, line 238, in _ping_receiver
      File “/usr/lib/python2.7/socket.py”, line 191, in __init__
      _sock = _realsocket(family, type, proto)
      error: [Errno 1] Operation not permitted
      Need Root!!!!

      Tried al off these, but not one seems to resolve my issue.
      https://www.suse.com/support/kb/doc/?id=000020581

      Someone who has the magic answer to make it work?

      • This topic was modified 3 months ago by charlezcharlez.
      • This topic was modified 3 months ago by charlezcharlez.
      • This topic was modified 3 months ago by charlezcharlez.
      RoellerRoeller
      Keymaster
        Post count: 51

        Could you try to run hs_main under root? The hs_main is run from a boot script. Maybe you can set the SUID bit (S_ISUID).

        chmod u+s hs_main

        This will execute the hs_main process (no matter who calls it) under the owner of that process. So if you make ‘root’ the owner, then the hs_main will be executed as root. Now it should be able to create raw sockets.

        Let me know if it works!

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.