Dangerous System Functions for Servers ???

This is a discussion on Dangerous System Functions for Servers ??? within the C++ Programming forums, part of the General Programming Boards category; Hello! It's again about my project http://cboard.cprogramming.com/showt...threadid=44636 Now what I need to know that which C/C++ functions are restricted for ...

  1. #1
    Registered User Moni's Avatar
    Join Date
    Oct 2002
    Location
    Dhaka, Bangladesh.
    Posts
    104

    Dangerous System Functions for Servers ???

    Hello! It's again about my project

    Memory Check ?!?

    Now what I need to know that which C/C++ functions are restricted for the server ???

    I mean if someone send any C/C++ code via submit-o-matic or email.....how can I check that is he writting some thing dangerous for the server???

    Can you tell me the function or Macro names and the way to save the server ???
    We all are the components of a huge program...... the programmer is always debugging us with His debugger.

  2. #2
    Registered User Moni's Avatar
    Join Date
    Oct 2002
    Location
    Dhaka, Bangladesh.
    Posts
    104
    Can you tell me how to protect server from :

    http://www.cs.cf.ac.uk/Dave/C/node20...00000000000000

    These types of codes ???
    We all are the components of a huge program...... the programmer is always debugging us with His debugger.

  3. #3
    Cat
    Cat is offline
    Registered User
    Join Date
    May 2003
    Posts
    1,571
    Why not just make sure the program runs as a user with an access level that is too low to do anything harmful?
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

  4. #4
    Registered User Moni's Avatar
    Join Date
    Oct 2002
    Location
    Dhaka, Bangladesh.
    Posts
    104
    Originally posted by Cat
    Why not just make sure the program runs as a user with an access level that is too low to do anything harmful?
    As this is a contest system he/she must have access with the header files........but I have to restrict that he can't do any herm to the server (with functions or Macros) But I am not sure if I restrict the clients user level access then can he do his normal programming?

    Or is there any other way by editing the header files......

    Where can I get the list of dangerous functions ???
    We all are the components of a huge program...... the programmer is always debugging us with His debugger.

  5. #5
    Cat
    Cat is offline
    Registered User
    Join Date
    May 2003
    Posts
    1,571
    What I mean is, create a user account that only has access to the directory in which the program resides, etc. You should be able to use security permissions to block dangerous code -- the OS simply would forbid the dangerous activity.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

  6. #6
    Grammar Police HybridM's Avatar
    Join Date
    Jan 2003
    Posts
    355
    Like Cat said, use an account system, where upon installation (or first use) you let the admin choose a master password, that is all powerful, and also let them choose restricted account password(s) for Joe User.
    Thor's self help tip:
    Maybe a neighbor is tossing leaf clippings on your lawn, looking at your woman, or harboring desires regarding your longboat. You enslave his children, set his house on fire. He shall not bother you again.

    OS: Windows XP
    Compiler: MSVC

  7. #7
    Registered User Moni's Avatar
    Join Date
    Oct 2002
    Location
    Dhaka, Bangladesh.
    Posts
    104
    Oh! My submit page is like this :

    http://acm.uva.es/problemset/submit

    Do you say that I'll save all the submitted code on a folder (Linux) and restric the user access levels.........and then he/she won't be able to access systems with his/her C/C++ codes?
    We all are the components of a huge program...... the programmer is always debugging us with His debugger.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with a C Programing Quiz project
    By dilemma in forum C Programming
    Replies: 12
    Last Post: 05-15-2009, 04:35 PM
  2. Replies: 3
    Last Post: 06-13-2005, 08:28 AM
  3. Why Can't C++ Be Used to Develop Operating System?
    By Antigloss in forum C++ Programming
    Replies: 7
    Last Post: 05-27-2005, 07:16 AM
  4. Attaching functions to a class/struct
    By VirtualAce in forum Tech Board
    Replies: 2
    Last Post: 08-04-2003, 11:56 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21