The old man is fingering the dog's anus. He is looking around furtively, so he knows what he is doing is wrong and wants to avoid being caught.
The dog has a world weary expression on its face, evocative of the animal appliances on "The Flintstones".
"It's a living."