_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c7400
train
// NewVerifier initializes data structures based on the interface that // is transmitted over the RPC between main and remote enforcers.
{ "resource": "" }
c7401
train
// NewMockEnforcer creates a new mock instance // nolint
{ "resource": "" }
c7402
train
// Unenforce mocks base method // nolint
{ "resource": "" }
c7403
train
// GetFilterQueue mocks base method // nolint
{ "resource": "" }
c7404
train
// GetFilterQueue indicates an expected call of GetFilterQueue // nolint
{ "resource": "" }
c7405
train
// CleanUp mocks base method // nolint
{ "resource": "" }
c7406
train
// EnableIPTablesPacketTracing mocks base method // nolint
{ "resource": "" }
c7407
train
// GetUDPData return additional data in packet
{ "resource": "" }
c7408
train
// DropTCPDetachedBytes removes any bytes that have been detached and stored locally
{ "resource": "" }
c7409
train
// Print is a print helper function
{ "resource": "" }
c7410
train
//GetTCPBytes returns the bytes in the packet. It consolidates in case of changes as well
{ "resource": "" }
c7411
train
// ReadTCPData returns ths payload in a string variable // It does not remove the payload from the packet
{ "resource": "" }
c7412
train
// CheckTCPAuthenticationOption ensures authentication option exists at the offset provided
{ "resource": "" }
c7413
train
// FixupIPHdrOnDataModify modifies the IP header fields and checksum
{ "resource": "" }
c7414
train
// IncreaseTCPSeq increases TCP seq number by incr
{ "resource": "" }
c7415
train
// DecreaseTCPSeq decreases TCP seq number by decr
{ "resource": "" }
c7416
train
// IncreaseTCPAck increases TCP ack number by incr
{ "resource": "" }
c7417
train
// DecreaseTCPAck decreases TCP ack number by decr
{ "resource": "" }
c7418
train
// FixuptcpHdrOnTCPDataDetach modifies the TCP header fields and checksum
{ "resource": "" }
c7419
train
// FixuptcpHdrOnTCPDataAttach modifies the TCP header fields and checksum
{ "resource": "" }
c7420
train
// TCPDataAttach modifies the TCP and IP header fields and checksum
{ "resource": "" }
c7421
train
// L4FlowHash calculate a hash string based on the 4-tuple
{ "resource": "" }
c7422
train
// ID returns the IP ID of the packet
{ "resource": "" }
c7423
train
//GetBuffer returns the slice representing the buffer at offset specified
{ "resource": "" }
c7424
train
// NewInstance creates a new iptables controller instance
{ "resource": "" }
c7425
train
// newInstanceWithProviders is called after ipt and ips have been created. This helps // with all the unit testing to be able to mock the providers.
{ "resource": "" }
c7426
train
// Run starts the iptables controller
{ "resource": "" }
c7427
train
// ConfigureRules implments the ConfigureRules interface. It will create the // port sets and then it will call install rules to create all the ACLs for // the given chains. PortSets are only created here. Updates will use the // exact same logic.
{ "resource": "" }
c7428
train
// DeleteRules implements the DeleteRules interface. This is responsible // for cleaning all ACLs and associated chains, as well as ll the sets // that we have created. Note, that this only clears up the state // for a given processing unit.
{ "resource": "" }
c7429
train
// UpdateRules implements the update part of the interface. Update will call // installrules to install the new rules and then it will delete the old rules. // For installations that do not have latests iptables-restore we time // the operations so that the switch is almost atomic, by creating the new rules // first. F...
{ "resource": "" }
c7430
train
// CleanUp requires the implementor to clean up all ACLs and destroy all // the IP sets.
{ "resource": "" }
c7431
train
// InitializeChains initializes the chains.
{ "resource": "" }
c7432
train
// configureLinuxRules adds the chain rules for a linux process or a UID process.
{ "resource": "" }
c7433
train
// Install rules will install all the rules and update the port sets.
{ "resource": "" }
c7434
train
// puPortSetName returns the name of the pu portset.
{ "resource": "" }
c7435
train
// NewProtoListener creates a listener for a particular protocol.
{ "resource": "" }
c7436
train
// Accept accepts new connections over the channel.
{ "resource": "" }
c7437
train
// NewMultiplexedListener returns a new multiplexed listener. Caller // must register protocols outside of the new object creation.
{ "resource": "" }
c7438
train
// RegisterListener registers a new listener. It returns the listener that the various // protocol servers should use. If defaultListener is set, this will become // the default listener if no match is found. Obviously, there cannot be more // than one default.
{ "resource": "" }
c7439
train
// UnregisterListener unregisters a listener. It returns an error if there are services // associated with this listener.
{ "resource": "" }
c7440
train
// RegisterDefaultListener registers a default listener.
{ "resource": "" }
c7441
train
// UnregisterDefaultListener unregisters the default listener.
{ "resource": "" }
c7442
train
// Serve will demux the connections
{ "resource": "" }
c7443
train
// GetParameters retrieves log parameters for Remote Enforcer.
{ "resource": "" }
c7444
train
// isPodInfraContainer returns true if the runtime represents the infra container for the POD
{ "resource": "" }
c7445
train
// NewStatsClient initializes a new stats client
{ "resource": "" }
c7446
train
// sendStats async function which makes a rpc call to send stats every STATS_INTERVAL
{ "resource": "" }
c7447
train
// SendStats sends all the stats from the cache
{ "resource": "" }
c7448
train
// Start This is an private function called by the remoteenforcer to connect back // to the controller over a stats channel
{ "resource": "" }
c7449
train
// New returns a trireme interface implementation based on configuration provided.
{ "resource": "" }
c7450
train
// Run starts the supervisor and the enforcer and go routines. It doesn't try to clean // up if something went wrong. It will be up to the caller to decide what to do.
{ "resource": "" }
c7451
train
// CleanUp cleans all the acls and all the remote supervisors
{ "resource": "" }
c7452
train
// Enforce asks the controller to enforce policy to a processing unit
{ "resource": "" }
c7453
train
// UpdateSecrets updates the secrets of the controllers.
{ "resource": "" }
c7454
train
// UpdateConfiguration updates the configuration of the controller. Only // a limited number of parameters can be updated at run time.
{ "resource": "" }
c7455
train
// doHandleCreate is the detailed implementation of the create event.
{ "resource": "" }
c7456
train
// doHandleDelete is the detailed implementation of the delete event.
{ "resource": "" }
c7457
train
// doUpdatePolicy is the detailed implementation of the update policy event.
{ "resource": "" }
c7458
train
// TCPFlagsToStr converts the TCP Flags to a string value that is human readable
{ "resource": "" }
c7459
train
// DialMarkedWithContext will dial a TCP connection to the provide address and mark the socket // with the provided mark.
{ "resource": "" }
c7460
train
// NewSocketListener will create a listener and mark the socket with the provided mark.
{ "resource": "" }
c7461
train
// LocalAddr implements the corresponding method of net.Conn, but returns the original // address.
{ "resource": "" }
c7462
train
// SetDeadline passes the read deadline to the original TCP connection.
{ "resource": "" }
c7463
train
// SetReadDeadline implements the call by passing it to the original connection.
{ "resource": "" }
c7464
train
// SetWriteDeadline implements the call by passing it to the original connection.
{ "resource": "" }
c7465
train
// GetInterfaces retrieves all the local interfaces.
{ "resource": "" }
c7466
train
// GetCgroupList geta list of all cgroup names
{ "resource": "" }
c7467
train
// OptionCollector is an option to provide an external collector implementation.
{ "resource": "" }
c7468
train
// OptionDatapathService is an option to provide an external datapath service implementation.
{ "resource": "" }
c7469
train
// OptionSecret is an option to provide an external datapath service implementation.
{ "resource": "" }
c7470
train
// OptionEnforceFqConfig is an option to override filter queues.
{ "resource": "" }
c7471
train
// OptionRuntimeConfiguration is an option to provide target network configuration.
{ "resource": "" }
c7472
train
// OptionRuntimeErrorChannel configures the error channel for the policy engine.
{ "resource": "" }
c7473
train
// OptionRemoteParameters is an option to set the parameters for the remote
{ "resource": "" }
c7474
train
// newTrireme returns a reference to the trireme object based on the parameter subelements.
{ "resource": "" }
c7475
train
// generateContextID creates the puID from the event information
{ "resource": "" }
c7476
train
// nolint //export pam_sm_open_session
{ "resource": "" }
c7477
train
// nolint //export pam_sm_close_session
{ "resource": "" }
c7478
train
// NewMockProcessManager creates a new mock instance // nolint
{ "resource": "" }
c7479
train
// KillRemoteEnforcer mocks base method // nolint
{ "resource": "" }
c7480
train
// KillRemoteEnforcer indicates an expected call of KillRemoteEnforcer // nolint
{ "resource": "" }
c7481
train
// LaunchRemoteEnforcer mocks base method // nolint
{ "resource": "" }
c7482
train
// LaunchRemoteEnforcer indicates an expected call of LaunchRemoteEnforcer // nolint
{ "resource": "" }
c7483
train
// NewClaimsHeader returns claims header handler
{ "resource": "" }
c7484
train
// NewCompactPKI creates new secrets for PKI implementation based on compact encoding
{ "resource": "" }
c7485
train
// PublicSecrets returns the secrets that are marshallable over the RPC interface.
{ "resource": "" }
c7486
train
// NewPUPolicyWithDefaults sets up a PU policy with defaults
{ "resource": "" }
c7487
train
// ManagementID returns the management ID
{ "resource": "" }
c7488
train
// TriremeAction returns the TriremeAction
{ "resource": "" }
c7489
train
// SetTriremeAction returns the TriremeAction
{ "resource": "" }
c7490
train
// ApplicationACLs returns a copy of IPRuleList
{ "resource": "" }
c7491
train
// NetworkACLs returns a copy of IPRuleList
{ "resource": "" }
c7492
train
// DNSNameACLs returns a copy of DNSRuleList
{ "resource": "" }
c7493
train
// ReceiverRules returns a copy of TagSelectorList
{ "resource": "" }
c7494
train
// AddReceiverRules adds a receiver rule
{ "resource": "" }
c7495
train
// TransmitterRules returns a copy of TagSelectorList
{ "resource": "" }
c7496
train
// AddTransmitterRules adds a transmitter rule
{ "resource": "" }
c7497
train
// Identity returns a copy of the Identity
{ "resource": "" }
c7498
train
// Annotations returns a copy of the annotations
{ "resource": "" }
c7499
train
// AddIdentityTag adds a policy tag
{ "resource": "" }