Sha256: d9de2694ae98ba2d151999ef4633d91bd36fa09908cbc2b66faabf1573e7b6ee

Contents?: true

Size: 682 Bytes

Versions: 2

Compression:

Stored size: 682 Bytes

Contents

#!/usr/bin/env ruby
# -*- coding: binary -*-

# Generic page protection flags
PROT_NONE         =        0
PROT_READ         = (1 <<  0)
PROT_WRITE        = (1 <<  1)
PROT_EXEC         = (1 <<  2)
PROT_COW          = (1 << 20)

# Generic permissions
GEN_NONE          =        0
GEN_READ          = (1 <<  0)
GEN_WRITE         = (1 <<  1)
GEN_EXEC          = (1 <<  2)

# Generic process open permissions
PROCESS_READ      = (1 <<  0)
PROCESS_WRITE     = (1 <<  1)
PROCESS_EXECUTE   = (1 <<  2)
PROCESS_ALL       = 0xffffffff

# Generic thread open permissions
THREAD_READ       = (1 <<  0)
THREAD_WRITE      = (1 <<  1)
THREAD_EXECUTE    = (1 <<  2)
THREAD_ALL        = 0xffffffff

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
librex-0.0.68 lib/rex/post/permission.rb
librex-0.0.66 lib/rex/post/permission.rb