Buddhism rejects the self and accepts a notion of non-self. It preceded bundle theory and no-ownership theory, which is in some way a formulation of this.
Hume pushed the bundle theory but could not understand what is there if it were only experiences. What he seem to left out is memory.
The self is just a collection of this matter-related memories. In this way, it does not go against the principles of one being “created” by the environment. A person is not independent of the place and time he or she is at or in. She or he is a product of it.
Property is theft, said Proudhon. Self-property is to steal and rob from the world of what you could contribute to it. That could be rightly called selfishness. To act without being the owner of the spirit is selflessness.